FIND-COMPOUNDS(1)
πΈ find-compounds(1) β User Contributed Perl Documentation πΈ
okay bestie, welcome to the find-compounds(1) manual page. It's giving old-school Perl docs, but we're gonna make it make sense. π
π NAME π
find-compounds.pl β find compound words in a text that are specified in a list. periodt. β¨
β¨ DESCRIPTION β¨
okay so the description is literally just this: See perldoc find-compounds.pl. That's the whole vibe. No cap. π«Ά
π USAGE π
find-compounds.pl SourceFile CompoundWordList
π¦ INPUT π¦
π Required Arguments π
SourceFileβ the source file is the original text file, bestie. That's your starting text. πCompoundWordListβ this one contains the compound words. Compound words are separated by underscore_. Each compound word is a line. lowkey simple, highkey useful. β¨
Examples:
The original text contains "This is the new york city". In the compound word list, it has:
new_york
new_york_city
The find-compounds.pl will find the longest match. After replacing the compound words, the text is "This is the new_york_city". slay. π₯
β Other Options β
--newlineβ find compound words within one line boundary with this option. If you runfind-compounds.plwithout this option, find compound words crossing lines. πDisplays this message.β okay this line is floating in the original options area all by itself, not attached to a flag, and I'm preserving it exactly because every detail matters. π--helpβ displays this message.--versionβ displays the version information. π
π AUTHOR π
Ying Liu. University of Minnesota at Twin Cities. liux0395@umn.edu. iconic. π
π COPYRIGHT π
Copyright (c) 2010-2011, Ying Liu
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to
The Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
okay that's the whole page, bestie π«Ά β source/version: perl v5.42.3; date: 2015-10-04; and yes, it's FIND-COMPOUNDS(1) energy all the way. πβ¨
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Text-NSP 1.31
- nixpkgs unstable: perl5.42.3-Text-NSP 1.31
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms