1MAKE-LINGUA-IDENTIFY-LAUNsGeUrAGCEo(n1t)ributed Perl DocMuAmKeEn-tLaItNiGoUnA-IDENTIFY-LANGUAGE(1)
2
3
4

NAME

6       make-lingua-identify-language - creates language modules for
7       Lingua::Identify
8

SYNOPSIS

10         make-lingua-identify-language Language-Tag Language-Name file1 [file2 ...]
11
12       or
13
14         make-lingua-identify-language -d TAG1-LANGUAGE1/ [TAG2-LANGUAGE2/ ...]
15
16       or
17
18         make-lingua-identify
19

DESCRIPTION

21       Creates language modules to be used by Lingua::Identify.
22
23       After creating the modules, you still have to install them.
24
25       Please note that this script is still at an early stage. Please do not
26       even look at the code...
27
28       Without parameters, make-lingua-identify-language assumes mode -d and
29       goes through all the directories in the current one. This is useful to
30       be used in a directory where you something like this:
31
32         .
33         |-- en-english
34         |   `-- english.txt
35         |-- fr-french
36         |   `-- french1.txt
37         |   `-- french2.txt
38         `-- pt-portuguese
39             `-- portuguese.txt
40
41   OPTIONS
42   -d
43       Directory mode. Each parameter passed should be a directory whose name
44       must be of the form tag-name (e.g., en-english/ ). Each of the
45       directories passed should contain text files that can be used to train
46       Lingua::Identify.
47
48   -D
49       Debug mode. Only for development.
50
51   -h
52       Display help and exit.
53
54   -v
55       Show version and exit.
56
57   -verbose
58       Verbose mode.
59
60   -locale="<locale>"
61       Set a specific locale. This way your text will be all lowercased before
62       analysed.
63

META.yml

65       "META.yml" files are not parsed as other files, they are ignored.
66
67       In directory mode ("-d" switch), "META.yml" files are checked for info
68       on languages codes and sets.
69
70       Here's a simple "META.yml" for you to put in your directories:
71
72         two_letter_code:   pt
73         three_letter_code: por
74         sets:
75           spoken_in_portugal
76
77       With that, the language will be identified with the two letter code
78       "pt" or the three letter code "por"; it will also be in the set
79       ":spoken_in_portugal".
80

CONTRIBUTING WITH NEW LANGUAGES

82       Please do not contribute with modules you made yourself. It's easier to
83       contribute with unprocessed text, because that allows for new versions
84       of Lingua::Identify not having to drop languages down in case I can't
85       contact you by that time.
86
87       Use make-lingua-identify-language to create a new module for your own
88       personal use, if you must, but try to contribute with unprocessed text
89       rather than those modules.
90

SEE ALSO

92       Lingua::Identify(3), langident(1)
93
94       A linguist and/or a shrink.
95
96       The latest CVS version of "Lingua::Identify" (which includes make-
97       lingua-identify) can be attained at
98       http://natura.di.uminho.pt/natura/viewcvs.cgi/Lingua/Identify/
99
100       ISO 639 Language Codes, at http://www.w3.org/WAI/ER/IG/ert/iso639.htm
101

AUTHOR

103       Jose Alves de Castro, <cog@cpan.org>
104
106       Copyright 2004-2005 by Jose Alves de Castro
107
108       This library is free software; you can redistribute it and/or modify it
109       under the same terms as Perl itself.
110
111
112
113perl v5.32.1                      2021-01-27  MAKE-LINGUA-IDENTIFY-LANGUAGE(1)
Impressum