MAKE-LI...LANGUAGE(1)
π MAKE-LI...LANGUAGE π
okay bestie, welcome to make-lingua-identify-language β it's a little script from the User Contributed Perl Documentation corner of the universe, and it makes language modules for Lingua::Identify. yes she's a mouthful, no we're not shortening her, she earned that name. π
β¨ NAME β¨
make-lingua-identify-language β creates language modules for Lingua::Identify. that's the whole job. that's the vibe. πΈ
π¦ SYNOPSIS π¦
three ways to run her, pick your fighter:
make-lingua-identify-language Language-Tag Language-Name file1 [file2 ...]
or
make-lingua-identify-language -d TAG1-LANGUAGE1/ [TAG2-LANGUAGE2/ ...]
or
make-lingua-identify
π DESCRIPTION π
she creates language modules that Lingua::Identify gets to use. that's the glow-up. β¨
heads up bestie: after the modules are created, you still have to install them. she does not do that part for you. she's not your mom. π
also, real talk β this script is still at an early stage. the docs literally say "Please do not even look at the code..." and honestly? respect the honesty. π
with no parameters at all, make-lingua-identify-language assumes mode -d and just walks through all the directories in the current one. which is iconic when you're sitting in a directory that looks like this:
.
|-- en-english
| `-- english.txt
|-- fr-french
| `-- french1.txt
| `-- french2.txt
`-- pt-portuguese
`-- portuguese.txt
βοΈ OPTIONS βοΈ
-dβ Directory mode. every parameter you pass should be a directory, and its name has to be in the form tag-name (likeen-english/). each one of those directories should hold text files that can be used to trainLingua::Identify. feed the algorithm. she's hungry. π-Dβ Debug mode. development only, don't get any ideas. π§-hβ show help and dip. that's it, that's the whole option. π-vβ show the version and exit. π-verboseβ Verbose mode. she will talk. a lot. π¬-locale="<locale>"β set a specific locale. this way your text gets all lowercased before it's analysed. so fancy. π
π META.yml π
okay so META.yml files are not parsed like the other files β they get ignored by default. no cap.
BUT. in directory mode (the -d switch), those META.yml files are checked for info about language codes and sets. it's giving secret menu. π€«
here's a simple META.yml for you to drop into your directories:
two_letter_code: pt
three_letter_code: por
sets:
spoken_in_portugal
and with that lil guy in place, the language gets identified with the two letter code pt or the three letter code por, and it also gets put in the set :spoken_in_portugal. slay. π«Ά
π CONTRIBUTING WITH NEW LANGUAGES π
please do not contribute with modules you made yourself. i know, i know, you worked so hard π β but it's genuinely easier to contribute with unprocessed text, because that way new versions of Lingua::Identify don't have to drop languages down in case they can't contact you by that time. it's a logistics thing, not a talent thing.
if you must, use make-lingua-identify-language to create a new module for your own personal use. but fr fr, try to contribute unprocessed text rather than those modules. π
π₯ SEE ALSO π₯
Lingua::Identify(3),langident(1)- a linguist and/or a shrink. π (that's the original line and i am not touching it, it's perfect)
- the latest CVS version of
Lingua::Identify(which includesmake-lingua-identify) can be attained at http://natura.di.uminho.pt/natura/viewcvs.cgi/Lingua/Identify/ - ISO 639 Language Codes, at http://www.w3.org/WAI/ER/IG/ert/iso639.htm
β AUTHOR β
Jose Alves de Castro, <cog@cpan.org> π
π COPYRIGHT AND LICENSE π
Copyright 2004-2005 by Jose Alves de Castro
this library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πΈ
and that's the whole page bestie, no crumbs left. this was perl v5.42.0, dated 2025-07-25, and honestly? iconic of her to still be out here doing language detection in a group chat era. π¦β¨π periodt.
π¦ where this page comes from
- fedora 43: perl-Lingua-Identify-tools 0.56-30.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms