MAKE-L...ANGUAGE(1p)
β¨ NAME β¨
okay bestie, gather round β this page is all about make-lingua-identify-language π and its whole entire job is creating language modules for Lingua::Identify. That's it, that's the gig. π
πΈ SYNOPSIS πΈ
three whole ways to run this thing, pick your fighter:
make-lingua-identify-language Language-Tag Language-Name file1 [file2 ...]
or, if you're feeling directory-ish:
make-lingua-identify-language -d TAG1-LANGUAGE1/ [TAG2-LANGUAGE2/ ...]
or literally just:
make-lingua-identify
π¦ DESCRIPTION π¦
So what it does is create language modules that Lingua::Identify uses. That's the whole vibe. β¨
heads up though: after it makes the modules, you still have to install them yourself. It does not do that part for you, bestie. not me doing half the job π
real talk: this script is still at an early stage. The original author says please do not even look at the code... π so like, respect the boundary, don't peek.
If you run it with no parameters at all, make-lingua-identify-language assumes mode -d and goes through all the directories in the current one. Super handy when you're sitting in a directory that looks something 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 that directory's name has to be in the form tag-name (thinken-english/). Each directory you pass should hold text files you can use to trainLingua::Identify. π-Dβ Debug mode. Only for development, so like... devs only, iykyk.-hβ Shows you the help, then dips out. π«Ά-vβ Shows the version, then dips out. β-verboseβ Verbose mode. It's gonna tell you everything.-locale="<locale>"β Sets a specific locale. The way this works is your text gets all lowercased before it's analysed. lowercase era fr fr πΈ
π META.yml π
META.yml files are not parsed like the other files β they get ignored, periodt.
But in directory mode (the -d switch), META.yml files do get checked for info on language codes and sets. π
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
With that in place, the language gets identified with the two letter code pt or the three letter code por, and it'll also be in the set :spoken_in_portugal. iconic β¨
π CONTRIBUTING WITH NEW LANGUAGES π
okay this part matters, listen up bestie:
Please do not contribute modules you made yourself. It's way easier to contribute with unprocessed text, because that means new versions of Lingua::Identify don't have to drop languages down if the author can't contact you by that time. the way that unprocessed text is the move π
If you absolutely must, sure, use make-lingua-identify-language to create a new module for your own personal use β but please, please try to contribute the unprocessed text rather than those modules. π₯Ί
π SEE ALSO π
Lingua::Identify(3),langident(1)- A linguist and/or a shrink. π genuinely
- The latest CVS version of
Lingua::Identify(which includes make-lingua-identify) can be attained athttp://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 cap. This little beauty comes to you from perl v5.34.0, dated 2022-05-28, and it's filed under MAKE-L...ANGUAGE(1p) in the User Contributed Perl Documentation section. slay, go make some language modules πβ¨
π¦ where this page comes from
- debian bookworm: liblingua-identify-perl 0.56-2 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- debian trixie: liblingua-identify-perl 0.56-2 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu noble: liblingua-identify-perl 0.56-2 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu resolute: liblingua-identify-perl 0.56-2 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: liblingua-identify-perl 0.56-2 Β· 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