lib/Lingua/TokiPona/Word.pm

filter: Statementstmt 51.4% 69 / 134 Branchbran 16.1% 11 / 68 Conditioncond 8.7% 2 / 23 MC/DCmcdc 0.0% 0 / 15 Subroutinesub 60.0% 12 / 20 Podpod 100% 9 / 9 totaltotal 38.2% 103 / 269 CC 41 SCAR 42.9
CC
41
Cov
36%
new
193.4
ucsur
42.0
_known_provider
42.0
CRAP 73.1
« blib/lib/Lingua/TokiPona/Word.pm ↑ Summary
1 # Copyright (c) 2026 Philipp Schafft
2  
3 # licensed under Artistic License 2.0 (see LICENSE file)
4  
5 # ABSTRACT: module to interact with the words of Toki Pona
6  
7  
8 package Lingua::TokiPona::Word;
9  
10 1 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Data::Identifier v0.34;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Data::Identifier::Generate;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Data::Displaycolour;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 our $VERSION = v0.04;
20  
21 1 ▶use parent qw(Data::Identifier::Interface::Known Lingua::Generic::Interface::Word);
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 use constant {
24 1 WK_WORD_GENERATOR => Data::Identifier->new(uuid => '45823114-5f38-47d8-a749-2e7f3ec819c3', tagname => 'toki-pona-word-generator')->register,
25 WK_WORD_NAMESPACE => Data::Identifier->new(uuid => '8d043e5e-b7da-4a37-a87a-26bb361288a1', tagname => 'toki-pona-word-namespace')->register,
26 WK_WORD_TYPE => Data::Identifier->new(uuid => 'baf7bee1-0889-4a84-afc2-4904857d0571', tagname => 'toki-pona-word')->register,
27 WK_LT_TOK => Data::Identifier->new(uuid => 'f21986c8-baa1-5b7e-b357-2a76285c4778', displayname => 'Toki Pona', request => 'tok')->register,
28 1 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 1 my %_words;
31 my %_by_ise;
32 1 my %_by_ucsur;
33  
34 1 __PACKAGE__->_new($_) foreach (
35 # NOTE: Each list only contains the words not already in one of the lists above it.
36 qw(
37 a kin akesi ala alasa ale ali anpa ante anu awen e en esun ijo ike ilo insa jaki jan
38 jelo jo kala kalama kama kasi ken kepeken kili kiwen ko kon kule kulupu kute la lape
39 laso lawa len lete li lili linja lipu loje lon luka lukin oko lupa ma mama mani meli
40 mi mije moku moli monsi mu mun musi mute nanpa nasa nasin nena ni nimi noka o olin ona
41 open pakala pali palisa pan pana pi pilin pimeja pini pipi poka poki pona pu sama seli
42 selo seme sewi sijelo sike sin namako sina sinpin sitelen sona soweli suli suno supa suwi
43 tan taso tawa telo tenpo toki tomo tu unpa uta utala walo wan waso wawa weka wile
44 ),
45 qw(kijetesantakalu kin kipisi ku leko misikeke monsuta n soko tonsi), # Common
46 qw(epiku jasima lanpan linluwi majuna meso nimisin su), # Uncommon
47 qw(
48 apeja isipin jami kamalawala kapesi kiki kokosila konwe kulijo melome mijomi misa nja
49 ojuta oke omekapo owe pake penpo pika po powe puwa san soto sutopatikuna taki te teje
50 to unu usawi wa wasoweli wekama wuwojiti yupekosi
51 ), # Obscure
52 qw(suke toma), # Typo
53 qw(ete ewe kan ke kese kuntu likujo loka mulapisu neja pata peto polinpin pomotolo samu tuli umesu waleja), # nimi ku lili
54 qw(ju lu nu u), # Reserved words
55 );
56  
57 1 __PACKAGE__->new(string => $_)->{class}{stopword} = 1 foreach qw(a kin anu e en la li o pi seme);
58  
59 1 my %_concepts = (
60 loje => 'c9ec3bea-558e-4992-9b76-91f128b6cf29', # red
61 jelo => '2892c143-2ae7-48f1-95f4-279e059e7fc3', # yellow
62 laso => 'abcbf48d-c302-4be1-8c5c-a8de4471bcbb', # cyan
63 walo => '1a2c23fa-2321-47ce-bf4f-5f08934502de', # white
64 pimeja => 'fade296d-c34f-4ded-abd5-d9adaf37c284', # black
65 );
66  
67 1 foreach my $str (keys %_concepts) {
68 5 my __PACKAGE__ $word = __PACKAGE__->new(string => $str);
69 5 my Data::Identifier $word_id = $word->as('Data::Identifier')->register;
70 5 my Data::Identifier $concept = Data::Identifier->new(uuid => $_concepts{$str})->register;
71  
72 5 $_concepts{$str} = $concept;
73  
74 5 $word->Data::Displaycolour::mark(for => $concept);
75 5 $word_id->Data::Displaycolour::mark(for => $concept);
76 }
77  
78 {
79 1 my %ucsur = (
80 0xF1900 => 'SITELEN PONA IDEOGRAPH A',
81 0xF1901 => 'SITELEN PONA IDEOGRAPH AKESI',
82 0xF1902 => 'SITELEN PONA IDEOGRAPH ALA',
83 0xF1903 => 'SITELEN PONA IDEOGRAPH ALASA',
84 0xF1904 => 'SITELEN PONA IDEOGRAPH ALE',
85 0xF1905 => 'SITELEN PONA IDEOGRAPH ANPA',
86 0xF1906 => 'SITELEN PONA IDEOGRAPH ANTE',
87 0xF1907 => 'SITELEN PONA IDEOGRAPH ANU',
88 0xF1908 => 'SITELEN PONA IDEOGRAPH AWEN',
89 0xF1909 => 'SITELEN PONA IDEOGRAPH E',
90 0xF190A => 'SITELEN PONA IDEOGRAPH EN',
91 0xF190B => 'SITELEN PONA IDEOGRAPH ESUN',
92 0xF190C => 'SITELEN PONA IDEOGRAPH IJO',
93 0xF190D => 'SITELEN PONA IDEOGRAPH IKE',
94 0xF190E => 'SITELEN PONA IDEOGRAPH ILO',
95 0xF190F => 'SITELEN PONA IDEOGRAPH INSA',
96 0xF1910 => 'SITELEN PONA IDEOGRAPH JAKI',
97 0xF1911 => 'SITELEN PONA IDEOGRAPH JAN',
98 0xF1912 => 'SITELEN PONA IDEOGRAPH JELO',
99 0xF1913 => 'SITELEN PONA IDEOGRAPH JO',
100 0xF1914 => 'SITELEN PONA IDEOGRAPH KALA',
101 0xF1915 => 'SITELEN PONA IDEOGRAPH KALAMA',
102 0xF1916 => 'SITELEN PONA IDEOGRAPH KAMA',
103 0xF1917 => 'SITELEN PONA IDEOGRAPH KASI',
104 0xF1918 => 'SITELEN PONA IDEOGRAPH KEN',
105 0xF1919 => 'SITELEN PONA IDEOGRAPH KEPEKEN',
106 0xF191A => 'SITELEN PONA IDEOGRAPH KILI',
107 0xF191B => 'SITELEN PONA IDEOGRAPH KIWEN',
108 0xF191C => 'SITELEN PONA IDEOGRAPH KO',
109 0xF191D => 'SITELEN PONA IDEOGRAPH KON',
110 0xF191E => 'SITELEN PONA IDEOGRAPH KULE',
111 0xF191F => 'SITELEN PONA IDEOGRAPH KULUPU',
112 0xF1920 => 'SITELEN PONA IDEOGRAPH KUTE',
113 0xF1921 => 'SITELEN PONA IDEOGRAPH LA',
114 0xF1922 => 'SITELEN PONA IDEOGRAPH LAPE',
115 0xF1923 => 'SITELEN PONA IDEOGRAPH LASO',
116 0xF1924 => 'SITELEN PONA IDEOGRAPH LAWA',
117 0xF1925 => 'SITELEN PONA IDEOGRAPH LEN',
118 0xF1926 => 'SITELEN PONA IDEOGRAPH LETE',
119 0xF1927 => 'SITELEN PONA IDEOGRAPH LI',
120 0xF1928 => 'SITELEN PONA IDEOGRAPH LILI',
121 0xF1929 => 'SITELEN PONA IDEOGRAPH LINJA',
122 0xF192A => 'SITELEN PONA IDEOGRAPH LIPU',
123 0xF192B => 'SITELEN PONA IDEOGRAPH LOJE',
124 0xF192C => 'SITELEN PONA IDEOGRAPH LON',
125 0xF192D => 'SITELEN PONA IDEOGRAPH LUKA',
126 0xF192E => 'SITELEN PONA IDEOGRAPH LUKIN',
127 0xF192F => 'SITELEN PONA IDEOGRAPH LUPA',
128 0xF1930 => 'SITELEN PONA IDEOGRAPH MA',
129 0xF1931 => 'SITELEN PONA IDEOGRAPH MAMA',
130 0xF1932 => 'SITELEN PONA IDEOGRAPH MANI',
131 0xF1933 => 'SITELEN PONA IDEOGRAPH MELI',
132 0xF1934 => 'SITELEN PONA IDEOGRAPH MI',
133 0xF1935 => 'SITELEN PONA IDEOGRAPH MIJE',
134 0xF1936 => 'SITELEN PONA IDEOGRAPH MOKU',
135 0xF1937 => 'SITELEN PONA IDEOGRAPH MOLI',
136 0xF1938 => 'SITELEN PONA IDEOGRAPH MONSI',
137 0xF1939 => 'SITELEN PONA IDEOGRAPH MU',
138 0xF193A => 'SITELEN PONA IDEOGRAPH MUN',
139 0xF193B => 'SITELEN PONA IDEOGRAPH MUSI',
140 0xF193C => 'SITELEN PONA IDEOGRAPH MUTE',
141 0xF193D => 'SITELEN PONA IDEOGRAPH NANPA',
142 0xF193E => 'SITELEN PONA IDEOGRAPH NASA',
143 0xF193F => 'SITELEN PONA IDEOGRAPH NASIN',
144 0xF1940 => 'SITELEN PONA IDEOGRAPH NENA',
145 0xF1941 => 'SITELEN PONA IDEOGRAPH NI',
146 0xF1942 => 'SITELEN PONA IDEOGRAPH NIMI',
147 0xF1943 => 'SITELEN PONA IDEOGRAPH NOKA',
148 0xF1944 => 'SITELEN PONA IDEOGRAPH O',
149 0xF1945 => 'SITELEN PONA IDEOGRAPH OLIN',
150 0xF1946 => 'SITELEN PONA IDEOGRAPH ONA',
151 0xF1947 => 'SITELEN PONA IDEOGRAPH OPEN',
152 0xF1948 => 'SITELEN PONA IDEOGRAPH PAKALA',
153 0xF1949 => 'SITELEN PONA IDEOGRAPH PALI',
154 0xF194A => 'SITELEN PONA IDEOGRAPH PALISA',
155 0xF194B => 'SITELEN PONA IDEOGRAPH PAN',
156 0xF194C => 'SITELEN PONA IDEOGRAPH PANA',
157 0xF194D => 'SITELEN PONA IDEOGRAPH PI',
158 0xF194E => 'SITELEN PONA IDEOGRAPH PILIN',
159 0xF194F => 'SITELEN PONA IDEOGRAPH PIMEJA',
160 0xF1950 => 'SITELEN PONA IDEOGRAPH PINI',
161 0xF1951 => 'SITELEN PONA IDEOGRAPH PIPI',
162 0xF1952 => 'SITELEN PONA IDEOGRAPH POKA',
163 0xF1953 => 'SITELEN PONA IDEOGRAPH POKI',
164 0xF1954 => 'SITELEN PONA IDEOGRAPH PONA',
165 0xF1955 => 'SITELEN PONA IDEOGRAPH PU',
166 0xF1956 => 'SITELEN PONA IDEOGRAPH SAMA',
167 0xF1957 => 'SITELEN PONA IDEOGRAPH SELI',
168 0xF1958 => 'SITELEN PONA IDEOGRAPH SELO',
169 0xF1959 => 'SITELEN PONA IDEOGRAPH SEME',
170 0xF195A => 'SITELEN PONA IDEOGRAPH SEWI',
171 0xF195B => 'SITELEN PONA IDEOGRAPH SIJELO',
172 0xF195C => 'SITELEN PONA IDEOGRAPH SIKE',
173 0xF195D => 'SITELEN PONA IDEOGRAPH SIN',
174 0xF195E => 'SITELEN PONA IDEOGRAPH SINA',
175 0xF195F => 'SITELEN PONA IDEOGRAPH SINPIN',
176 0xF1960 => 'SITELEN PONA IDEOGRAPH SITELEN',
177 0xF1961 => 'SITELEN PONA IDEOGRAPH SONA',
178 0xF1962 => 'SITELEN PONA IDEOGRAPH SOWELI',
179 0xF1963 => 'SITELEN PONA IDEOGRAPH SULI',
180 0xF1964 => 'SITELEN PONA IDEOGRAPH SUNO',
181 0xF1965 => 'SITELEN PONA IDEOGRAPH SUPA',
182 0xF1966 => 'SITELEN PONA IDEOGRAPH SUWI',
183 0xF1967 => 'SITELEN PONA IDEOGRAPH TAN',
184 0xF1968 => 'SITELEN PONA IDEOGRAPH TASO',
185 0xF1969 => 'SITELEN PONA IDEOGRAPH TAWA',
186 0xF196A => 'SITELEN PONA IDEOGRAPH TELO',
187 0xF196B => 'SITELEN PONA IDEOGRAPH TENPO',
188 0xF196C => 'SITELEN PONA IDEOGRAPH TOKI',
189 0xF196D => 'SITELEN PONA IDEOGRAPH TOMO',
190 0xF196E => 'SITELEN PONA IDEOGRAPH TU',
191 0xF196F => 'SITELEN PONA IDEOGRAPH UNPA',
192 0xF1970 => 'SITELEN PONA IDEOGRAPH UTA',
193 0xF1971 => 'SITELEN PONA IDEOGRAPH UTALA',
194 0xF1972 => 'SITELEN PONA IDEOGRAPH WALO',
195 0xF1973 => 'SITELEN PONA IDEOGRAPH WAN',
196 0xF1974 => 'SITELEN PONA IDEOGRAPH WASO',
197 0xF1975 => 'SITELEN PONA IDEOGRAPH WAWA',
198 0xF1976 => 'SITELEN PONA IDEOGRAPH WEKA',
199 0xF1977 => 'SITELEN PONA IDEOGRAPH WILE',
200 0xF1978 => 'SITELEN PONA IDEOGRAPH NAMAKO',
201 0xF1979 => 'SITELEN PONA IDEOGRAPH KIN',
202 0xF197A => 'SITELEN PONA IDEOGRAPH OKO',
203 0xF197B => 'SITELEN PONA IDEOGRAPH KIPISI',
204 0xF197C => 'SITELEN PONA IDEOGRAPH LEKO',
205 0xF197D => 'SITELEN PONA IDEOGRAPH MONSUTA',
206 0xF197E => 'SITELEN PONA IDEOGRAPH TONSI',
207 0xF197F => 'SITELEN PONA IDEOGRAPH JASIMA',
208 0xF1980 => 'SITELEN PONA IDEOGRAPH KIJETESANTAKALU',
209 0xF1981 => 'SITELEN PONA IDEOGRAPH SOKO',
210 0xF1982 => 'SITELEN PONA IDEOGRAPH MESO',
211 0xF1983 => 'SITELEN PONA IDEOGRAPH EPIKU',
212 0xF1984 => 'SITELEN PONA IDEOGRAPH KOKOSILA',
213 0xF1985 => 'SITELEN PONA IDEOGRAPH LANPAN',
214 0xF1986 => 'SITELEN PONA IDEOGRAPH N',
215 0xF1987 => 'SITELEN PONA IDEOGRAPH MISIKEKE',
216 0xF1988 => 'SITELEN PONA IDEOGRAPH KU',
217 0xF1989 => 'SITELEN PONA IDEOGRAPH LEFTWARDS NI',
218 0xF198A => 'SITELEN PONA IDEOGRAPH UPWARDS NI',
219 0xF198B => 'SITELEN PONA IDEOGRAPH RIGHTWARDS NI',
220 0xF198C => 'SITELEN PONA IDEOGRAPH ALTERNATE SEWI',
221 0xF1990 => 'SITELEN PONA START OF CARTOUCHE',
222 0xF1991 => 'SITELEN PONA END OF CARTOUCHE',
223 0xF1992 => 'SITELEN PONA COMBINING CARTOUCHE EXTENSION',
224 0xF1993 => 'SITELEN PONA START OF LONG PI',
225 0xF1994 => 'SITELEN PONA COMBINING LONG PI EXTENSION',
226 0xF1995 => 'SITELEN PONA STACKING JOINER',
227 0xF1996 => 'SITELEN PONA SCALING JOINER',
228 0xF1997 => 'SITELEN PONA START OF LONG GLYPH',
229 0xF1998 => 'SITELEN PONA END OF LONG GLYPH',
230 0xF1999 => 'SITELEN PONA COMBINING LONG GLYPH EXTENSION',
231 0xF199A => 'SITELEN PONA START OF REVERSE LONG GLYPH',
232 0xF199B => 'SITELEN PONA END OF REVERSE LONG GLYPH',
233 0xF199C => 'SITELEN PONA MIDDLE DOT',
234 0xF199D => 'SITELEN PONA COLON',
235 0xF199E => 'SITELEN PONA COMBINING TALLY MARK',
236 0xF19A0 => 'SITELEN PONA IDEOGRAPH PAKE',
237 0xF19A1 => 'SITELEN PONA IDEOGRAPH APEJA',
238 0xF19A2 => 'SITELEN PONA IDEOGRAPH MAJUNA',
239 0xF19A3 => 'SITELEN PONA IDEOGRAPH POWE',
240 0xF19A4 => 'SITELEN PONA IDEOGRAPH LINLUWI',
241 0xF19A5 => 'SITELEN PONA IDEOGRAPH KIKI',
242 0xF19A6 => 'SITELEN PONA IDEOGRAPH SU',
243 0xF19A7 => 'SITELEN PONA IDEOGRAPH ISIPIN',
244 0xF19A8 => 'SITELEN PONA IDEOGRAPH KAMALAWALA',
245 0xF19A9 => 'SITELEN PONA IDEOGRAPH KAPESI',
246 0xF19AA => 'SITELEN PONA IDEOGRAPH MELOME',
247 0xF19AB => 'SITELEN PONA IDEOGRAPH MIJOMI',
248 0xF19AC => 'SITELEN PONA IDEOGRAPH MISA',
249 0xF19AD => 'SITELEN PONA IDEOGRAPH NIMISIN',
250 0xF19AE => 'SITELEN PONA IDEOGRAPH NJA',
251 0xF19AF => 'SITELEN PONA IDEOGRAPH OKE',
252 0xF19B0 => 'SITELEN PONA IDEOGRAPH OMEKAPO',
253 0xF19B1 => 'SITELEN PONA IDEOGRAPH PUWA',
254 0xF19B2 => 'SITELEN PONA IDEOGRAPH SAN',
255 0xF19B3 => 'SITELEN PONA IDEOGRAPH TAKI',
256 0xF19B4 => 'SITELEN PONA IDEOGRAPH TE',
257 0xF19B5 => 'SITELEN PONA IDEOGRAPH TO',
258 0xF19B6 => 'SITELEN PONA IDEOGRAPH UNU',
259 0xF19B7 => 'SITELEN PONA IDEOGRAPH USAWI',
260 0xF19B8 => 'SITELEN PONA IDEOGRAPH WA',
261 0xF19B9 => 'SITELEN PONA IDEOGRAPH WUWOJITI',
262 0xF19BA => 'SITELEN PONA IDEOGRAPH YUPEKOSI',
263 );
264 1 foreach my $cp (keys %ucsur) {
265 183 ▶ my ($str) = $ucsur{$cp} =~ /^SITELEN PONA IDEOGRAPH ([A-Z]+)\z/ or next;
Branch: 1 branch
BranchTrueFalseTotal
my($str) = $ucsur{$cp} =~ /^SITELEN PONA IDEOGRAPH ([A-Z]+)\z/u or next 19 164 183
266 164 ▶ my $word = $_words{lc $str} // next;
Condition50%1/2
$_words{lc $str} // (next)
l!l
1640
MC/DC0%0/1
$_words{lc $str} // (next)
$_words{lc $str}
Truth table50%1/2
A
A= $_words{lc $str}
Aresult
11
00
267 164 $word->{ucsur} = int $cp;
268 164 $_by_ucsur{$cp} = $word;
269 }
270 }
271  
272  
273 # Not our actual constructor, see _new(). This is for the public API only
274 sub new {
275 15 ▶ my ($pkg, $type, $value, @opts) = @_;
Subroutine new: called CC=19 SCAR=52.6
Pod documented
276  
277 15 ▶ croak 'No type given' unless defined $type;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $type 0 15 15
278 15 ▶ croak 'No value given' unless defined $value;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $value 0 15 15
279 15 ▶ croak 'Stray options passed' if scalar @opts;
Branch: 1 branch
BranchTrueFalseTotal
if scalar @opts 0 15 15
280  
281 15 ▶ if ($type eq 'from') {
Branch: 2 branches
BranchTrueFalseTotal
if ($type eq 'from') { } 0 15 15
elsif ($type eq 'ise') { } 0 15 15
282 0 ▶ if (ref $value) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $value) { } 0 0 0
283 0 ▶ if ($value->isa(__PACKAGE__)) {
Branch: 3 branches
BranchTrueFalseTotal
if ($value->isa(__PACKAGE__)) { } 0 0 0
elsif ($value->isa('Data::Identifier')) { } 0 0 0
elsif ($value->isa('Lingua::famibeib::Word')) { } 0 0 0
284 0 return $value;
285 } elsif ($value->isa('Data::Identifier')) {
286 0 $type = 'Data::Identifier';
287 } elsif ($value->isa('Lingua::famibeib::Word')) {
288 0 $value = $value->as(__PACKAGE__);
289 0 ▶ return $value if scalar(@opts) == 0;
Branch: 1 branch
BranchTrueFalseTotal
if scalar @opts == 0 0 0 0
290 0 $value = $value->as('Data::Identifier');
291 0 $type = 'Data::Identifier';
292 } else {
293 0 $type = 'Data::Identifier';
294 0 $value = Data::Identifier->new(from => $value);
295 }
296 } else {
297 0 $type = 'string';
298 }
299 } elsif ($type eq 'ise') {
300 0 $type = 'Data::Identifier';
301 0 $value = Data::Identifier->new(ise => $value);
302 }
303  
304 15 ▶ if ($type eq 'string') {
Branch: 3 branches
BranchTrueFalseTotal
if ($type eq 'string') { } 15 0 15
elsif ($type eq 'ucsur') { } 0 0 0
elsif ($type eq 'Data::Identifier') { } 0 0 0
305 15 ▶ return $_words{lc $value} // croak 'No such word';
Condition33%1/3
$_words{lc $value} // croak("No such word")
l!l&&r!l&&!r
1500
MC/DC0%0/2
$_words{lc $value} // croak("No such word")
$_words{lc $value} croak("No such word")
Truth table33%1/3
A // B
A= $_words{lc $value}B= croak("No such word")
ABresult
1X1
011
000
306 } elsif ($type eq 'ucsur') {
307 0 ▶ if ($value =~ /^U\+([0-9a-fA-F]{4,6})\z/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($value =~ /^U\+([0-9a-fA-F]{4,6})\z/u) 0 0 0
308 0 $value = hex($1);
309 }
310 0 ▶ return $_by_ucsur{$value} // croak 'No such word';
Condition0%0/3
$_by_ucsur{$value} // croak("No such word")
l!l&&r!l&&!r
000
MC/DC0%0/2
$_by_ucsur{$value} // croak("No such word")
$_by_ucsur{$value} croak("No such word")
Truth table0%0/3
A // B
A= $_by_ucsur{$value}B= croak("No such word")
ABresult
1X1
011
000
311 } elsif ($type eq 'Data::Identifier') {
312 0 ▶ return $_by_ise{$value->uuid(default => undef, no_defaults => 1) // $value->ise} // croak 'No such word';
Condition0%0/6
$_by_ise{$value->uuid("default", undef, "no_defaults", 1) // $value->ise} // croak("No such word")
l!l&&r!l&&!r
000
$value->uuid("default", undef, "no_defaults", 1) // $value->ise
l!l&&r!l&&!r
000
MC/DC0%0/2
$_by_ise{$value->uuid("default", undef, "no_defaults", 1) // $value->ise} // croak("No such word")
$_by_ise{$value->uuid("default", undef, "no_defaults", 1) // $value->ise} croak("No such word")
MC/DC0%0/2
$value->uuid("default", undef, "no_defaults", 1) // $value->ise
$value->uuid("default", undef, "no_defaults", 1) $value->ise
Truth table0%0/3
A // B
A= $_by_ise{$value->uuid("default", undef, "no_defaults", 1) // $value->ise}B= croak("No such word")
ABresult
1X1
011
000
Truth table0%0/3
A // B
A= $value->uuid("default", undef, "no_defaults", 1)B= $value->ise
ABresult
1X1
011
000
313 } else {
314 0 croak 'Bad type: '.$type;
315 }
316 }
317  
318  
319 # NOTE: Implemented via Lingua::Generic::Interface::Word
320  
321  
322 sub ucsur {
323 0 ▶ my ($self, %opts) = @_;
Subroutine ucsur: not called CC=6 SCAR=37.4
Pod documented
324 0 my $has_default = exists $opts{default};
325 0 my $default = delete $opts{default};
326 0 my $as = delete $opts{as};
327 0 my $ucsur = $self->{ucsur};
328  
329 0 delete $opts{no_defaults};
330  
331 0 ▶ croak 'Stray options passed' if scalar keys %opts;
Branch: 1 branch
BranchTrueFalseTotal
if scalar keys %opts 0 0 0
332  
333 0 ▶ unless (defined $ucsur) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $ucsur) 0 0 0
334 0 ▶ return $opts{default} if exists $opts{default};
Branch: 1 branch
BranchTrueFalseTotal
if exists $opts{"default"} 0 0 0
335 0 croak 'No value found';
336 }
337  
338 0 ▶ return $ucsur unless defined $as;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $as 0 0 0
339  
340 0 ▶ $self->{ucsur_id} //= Data::Identifier::Generate->unicode_character(unicode => $ucsur)->register;
Condition0%0/3
$self->{"ucsur_id"} //= "Data::Identifier::Generate"->unicode_character("unicode", $ucsur)->register
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"ucsur_id"} //= "Data::Identifier::Generate"->unicode_character("unicode", $ucsur)->register
$self->{"ucsur_id"} "Data::Identifier::Generate"->unicode_character("unicode", $ucsur)->register
Truth table0%0/3
A //= B
A= $self->{"ucsur_id"}B= "Data::Identifier::Generate"->unicode_character("unicode", $ucsur)->register
ABresult
1X1
011
000
341  
342 0 return $self->{ucsur_id}->as($as, so => $self);
343 }
344  
345  
346 # NOTE: Implemented via Lingua::Generic::Interface::Word
347  
348  
349 # NOTE: Implemented via Lingua::Generic::Interface::Word
350  
351  
352 sub has_type {
353 0 ▶ my ($self, %opts) = @_;
Subroutine has_type: not called CC=4 SCAR=30.0
Pod documented
354 0 my $as = delete $opts{as};
355  
356 0 delete $opts{default};
357 0 delete $opts{no_defaults};
358  
359 0 ▶ croak 'Stray options passed' if scalar keys %opts;
Branch: 1 branch
BranchTrueFalseTotal
if scalar keys %opts 0 0 0
360  
361 0 ▶ return WK_WORD_TYPE if !defined($as) || WK_WORD_TYPE->isa($as);
Branch: 1 branch
BranchTrueFalseTotal
if not defined $as or ${my $v = bless( {"id" => "baf7bee1-0889-4a84-afc2-4904857d0571","id_cache" => {"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:baf7bee1-0889-4a84-afc2-4904857d0571","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.248522776026855569129824334546621760881"},"tagname" => ["toki-pona-word"],"type" => bless( {"id" => "8be115d2-dc2f-4a98-91e1-a6e3075cbc31","id_cache" => {"039e0bb7-5dd3-40ee-a98c-596ff6cce405" => 119,"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:8be115d2-dc2f-4a98-91e1-a6e3075cbc31","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.185931400843933321174392841337080429617","f87a38cb-fd13-4e15-866c-e49901adbec5" => 2},"tagname" => ["uuid"],"type" => {},"validate" => qr/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}\z/u}, 'Data::Identifier' )}, 'Data::Identifier' );$v->{"type"}{"type"} = $v->{"type"}; \$v}->isa($as) 0 0 0
Condition0%0/3
not defined $as or ${my $v = bless( {"id" => "baf7bee1-0889-4a84-afc2-4904857d0571","id_cache" => {"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:baf7bee1-0889-4a84-afc2-4904857d0571","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.248522776026855569129824334546621760881"},"tagname" => ["toki-pona-word"],"type" => bless( {"id" => "8be115d2-dc2f-4a98-91e1-a6e3075cbc31","id_cache" => {"039e0bb7-5dd3-40ee-a98c-596ff6cce405" => 119,"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:8be115d2-dc2f-4a98-91e1-a6e3075cbc31","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.185931400843933321174392841337080429617","f87a38cb-fd13-4e15-866c-e49901adbec5" => 2},"tagname" => ["uuid"],"type" => {},"validate" => qr/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}\z/u}, 'Data::Identifier' )}, 'Data::Identifier' );$v->{"type"}{"type"} = $v->{"type"}; \$v}->isa($as)
l!l&&r!l&&!r
000
MC/DC0%0/2
not defined $as or ${my $v = bless( {"id" => "baf7bee1-0889-4a84-afc2-4904857d0571","id_cache" => {"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:baf7bee1-0889-4a84-afc2-4904857d0571","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.248522776026855569129824334546621760881"},"tagname" => ["toki-pona-word"],"type" => bless( {"id" => "8be115d2-dc2f-4a98-91e1-a6e3075cbc31","id_cache" => {"039e0bb7-5dd3-40ee-a98c-596ff6cce405" => 119,"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:8be115d2-dc2f-4a98-91e1-a6e3075cbc31","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.185931400843933321174392841337080429617","f87a38cb-fd13-4e15-866c-e49901adbec5" => 2},"tagname" => ["uuid"],"type" => {},"validate" => qr/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}\z/u}, 'Data::Identifier' )}, 'Data::Identifier' );$v->{"type"}{"type"} = $v->{"type"}; \$v}->isa($as)
not defined $as ${my $v = bless( {"id" => "baf7bee1-0889-4a84-afc2-4904857d0571","id_cache" => {"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:baf7bee1-0889-4a84-afc2-4904857d0571","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.248522776026855569129824334546621760881"},"tagname" => ["toki-pona-word"],"type" => bless( {"id" => "8be115d2-dc2f-4a98-91e1-a6e3075cbc31","id_cache" => {"039e0bb7-5dd3-40ee-a98c-596ff6cce405" => 119,"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:8be115d2-dc2f-4a98-91e1-a6e3075cbc31","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.185931400843933321174392841337080429617","f87a38cb-fd13-4e15-866c-e49901adbec5" => 2},"tagname" => ["uuid"],"type" => {},"validate" => qr/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}\z/u}, 'Data::Identifier' )}, 'Data::Identifier' );$v->{"type"}{"type"} = $v->{"type"}; \$v}->isa($as)
Truth table0%0/3
not(A) or B
A= not defined $asB= ${my $v = bless( {"id" => "baf7bee1-0889-4a84-afc2-4904857d0571","id_cache" => {"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:baf7bee1-0889-4a84-afc2-4904857d0571","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.248522776026855569129824334546621760881"},"tagname" => ["toki-pona-word"],"type" => bless( {"id" => "8be115d2-dc2f-4a98-91e1-a6e3075cbc31","id_cache" => {"039e0bb7-5dd3-40ee-a98c-596ff6cce405" => 119,"a8d1637d-af19-49e9-9ef8-6bc1fbcf6439" => "urn:uuid:8be115d2-dc2f-4a98-91e1-a6e3075cbc31","d08dc905-bbf6-4183-b219-67723c3c8374" => "2.25.185931400843933321174392841337080429617","f87a38cb-fd13-4e15-866c-e49901adbec5" => 2},"tagname" => ["uuid"],"type" => {},"validate" => qr/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}\z/u}, 'Data::Identifier' )}, 'Data::Identifier' );$v->{"type"}{"type"} = $v->{"type"}; \$v}->isa($as)
ABresult
1X1
011
000
362  
363 0 return WK_WORD_TYPE->as($as, so => $self);
364 }
365  
366  
367 #@returns Data::Identifier
368 sub natural_language {
369 0 ▶ my ($self, @opts) = @_;
Subroutine natural_language: not called CC=2 SCAR=17.9
Pod documented
370 0 ▶ croak 'Stray options passed' if scalar @opts;
Branch: 1 branch
BranchTrueFalseTotal
if scalar @opts 0 0 0
371 0 return WK_LT_TOK;
372 }
373  
374  
375 #@returns __PACKAGE__
376 sub register {
377 0 ▶ my ($self, @opts) = @_;
Subroutine register: not called CC=2 SCAR=17.9
Pod documented
378 0 ▶ croak 'Stray options passed' if scalar @opts;
Branch: 1 branch
BranchTrueFalseTotal
if scalar @opts 0 0 0
379 0 return $self;
380 }
381  
382  
383 #@returns __PACKAGE__
384 sub stem {
385 0 ▶ my ($self, @opts) = @_;
Subroutine stem: not called CC=2 SCAR=17.9
Pod documented
386 0 ▶ croak 'Stray options passed' if scalar @opts;
Branch: 1 branch
BranchTrueFalseTotal
if scalar @opts 0 0 0
387 0 return $self;
388 }
389  
390  
391 sub concepts {
392 0 ▶ my ($self, @opts) = @_;
Subroutine concepts: not called CC=3 SCAR=24.8
Pod documented
393 0 my $concept = $_concepts{$self->as_string};
394 0 ▶ croak 'Stray options passed' if scalar @opts;
Branch: 1 branch
BranchTrueFalseTotal
if scalar @opts 0 0 0
395 0 ▶ return () unless defined $concept;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $concept 0 0 0
396 0 return ($concept);
397 }
398  
399 # ---- Overridden methods ----
400  
401  
402  
403 # ---- Private helpers ----
404  
405 #@returns __PACKAGE__
406 sub _new {
407 203 ▶ my ($pkg, $str) = @_;
Subroutine _new: called CC=1 SCAR=0.0
408 203 my $self = bless {class => {}}, $pkg;
409 203 my $id;
410  
411 203 $str = lc($str); # just to be on the safe side
412  
413 203 $self->{string} = $str;
414  
415 203 $id = Data::Identifier::Generate->generic(
416 request => $str,
417 displayname => $str,
418 tagname => $str,
419 style => 'id-based',
420 namespace => WK_WORD_NAMESPACE,
421 generator => WK_WORD_GENERATOR,
422 )->register;
423  
424 203 $self->{id} = $id;
425  
426 203 $_words{$str} = $self;
427 203 $_by_ise{$id->uuid} = $self;
428 203 return $self;
429 }
430  
431 sub as {
432 5 ▶ my ($self, $as, @opts) = @_;
Subroutine as: called CC=5 SCAR=21.6
Pod documented
433 5 my Data::Identifier $id = $self->{id};
434  
435 5 ▶ if (scalar(@opts) == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @opts == 0) 5 0 5
436 5 ▶ return $self if $self->isa($as);
Branch: 1 branch
BranchTrueFalseTotal
if $self->isa($as) 0 5 5
437 5 ▶ return $id if $as eq 'Data::Identifier';
Branch: 1 branch
BranchTrueFalseTotal
if $as eq "Data::Identifier" 5 0 5
438  
439 0 ▶ if ($as eq 'Lingua::famibeib::Word') {
Branch: 1 branch
BranchTrueFalseTotal
if ($as eq "Lingua::famibeib::Word") 0 0 0
440 0 require Lingua::famibeib::Word;
441 0 return Lingua::famibeib::Word->new(from => $self);
442 }
443 }
444  
445 0 return $id->as($as, @opts);
446 }
447  
448 0 ▶sub ise { goto &Data::Identifier::Interface::Simple::ise } # overridden using tail-call
Subroutine ise: not called CC=1 SCAR=6.9
Pod documented
449  
450 sub _known_provider {
451 0 ▶ my ($pkg, $class, %opts) = @_;
Subroutine _known_provider: not called CC=6 SCAR=37.4
452  
453 0 ▶ croak 'Unsupported options passed' if scalar(keys %opts);
Branch: 1 branch
BranchTrueFalseTotal
if scalar keys %opts 0 0 0
454  
455 0 ▶ if ($class eq 'word' || $class eq 'words') {
Branch: 3 branches
BranchTrueFalseTotal
if ($class eq 'word' or $class eq 'words') { } 0 0 0
elsif ($class eq 'stopword') { } 0 0 0
elsif ($class eq ':all') { } 0 0 0
Condition0%0/3
$class eq "word" or $class eq "words"
l!l&&r!l&&!r
000
MC/DC0%0/2
$class eq "word" or $class eq "words"
$class eq "word" $class eq "words"
Truth table0%0/3
A or B
A= $class eq "word"B= $class eq "words"
ABresult
1X1
011
000
456 0 return ([values %_words], rawtype => __PACKAGE__);
457 } elsif ($class eq 'stopword') {
458 0 return ([grep {$_->{class}{$class}} values %_words], rawtype => __PACKAGE__);
459 } elsif ($class eq ':all') {
460 return ([
461 0 values(%_words),
462 WK_WORD_GENERATOR, WK_WORD_NAMESPACE,
463 WK_WORD_TYPE,
464 WK_LT_TOK,
465 ], rawtype => 'Data::Identifier::Interface::Simple');
466 }
467  
468 0 croak 'Unsupported class';
469 }
470  
471 1 1;
472  
473 __END__
474  
475 =pod
476  
477 =encoding UTF-8
478  
479 =head1 NAME
480  
481 Lingua::TokiPona::Word - module to interact with the words of Toki Pona
482  
483 =head1 VERSION
484  
485 version v0.04
486  
487 =head1 SYNOPSIS
488  
489 use Lingua::TokiPona::Word;
490  
491 my Lingua::TokiPona::Word $word = Lingua::TokiPona::Word->new(string => 'mi');
492  
493 say $word->as_string;
494  
495 This module inherits from
496 L<Lingua::Generic::Interface::Word> (since v0.03),
497 L<Data::Identifier::Interface::Known> (since v0.01),
498 L<Data::Identifier::Interface::Simple> (since v0.01),
499 and L<Data::Identifier::Interface::Subobjects> (since v0.01).
500  
501 =head1 OVERVIEW
502  
503 Toki Pona is a constructed language that features a specifically small set of vocables.
504 This module abstracts those words. It aims to contain all known words (as of v0.02: which is currently not yet fully true).
505  
506 As the vocabulary is so limited, this module does hold all the words in memory at all times.
507 This means that there are never two different object instances for the same words.
508 (Note that this may limit the usefulness of L<Data::Identifier::Interface::Subobjects>).
509  
510 That said, synonyms are consider different words.
511 So this is round-trip safe (you always get the word you asked for, not one of it's synonyms).
512  
513 To get a list of all known words use L</known>.
514  
515 =head1 METHODS
516  
517 =head2 new
518  
519 my Lingua::TokiPona::Word $word = Lingua::TokiPona::Word->new($type => $value);
520 # e.g.:
521 my Lingua::TokiPona::Word $word = Lingua::TokiPona::Word->new(string => 'mi');
522  
523 (since v0.01)
524  
525 Constructs a new word.
526 The word is normalised as part of this.
527 This method deduplicate instances.
528  
529 Currently the following types (C<$type>) are supported:
530  
531 =over
532  
533 =item C<from>
534  
535 (since v0.01)
536  
537 Constructs a word from an object.
538 C<$value> should be a reference.
539  
540 Currently references to the following types are supported:
541 L<Lingua::TokiPona::Word>,
542 or anything L<Data::Identifier/new> accepts via C<from>.
543 More types might be supported.
544  
545 If C<$value> is not a reference the value is parsed as per C<string> if it looks like a word string (experimental since v0.01).
546  
547 =item C<ise>
548  
549 (since v0.02)
550  
551 Constructs a word from a ISE (such as returned by L<Data::Identifier::Interface::Simple/ise>).
552  
553 =item C<string>
554  
555 (since v0.01)
556  
557 Constructs a word from it's (latin) string representation.
558  
559 =item C<ucsur>
560  
561 (since v0.02)
562  
563 Constructs a word from the UCSUR code point.
564  
565 See L</ucsur> for details.
566  
567 Accepts the numerical code point or standard Unicode notation (C<U+xxxx>).
568  
569 =back
570  
571 =head2 as_string
572  
573 my $str = $word->as_string;
574  
575 (since v0.01)
576  
577 Returns the string representation of the word.
578  
579 See also: L<Lingua::Generic::Interface::Word/as_string>.
580  
581 =head2 ucsur
582  
583 my $ucsur = $word->ucsur( [ %opts ] );
584  
585 (since v0.02)
586  
587 Returns the Under-ConScript Unicode Registry (UCSUR) code point of the word or C<die>s if there is none.
588  
589 Returns the numerical Unicode code point unless C<as> is given.
590  
591 The following options are supported:
592  
593 =over
594  
595 =item C<as>
596  
597 Returns the value as the passed type.
598 All types supported by L<Data::Identifier/as> are supported.
599  
600 =item C<default>
601  
602 The default value to return if no other value is available.
603 This can be set to C<undef> to let this method return C<undef> (not C<die>).
604  
605 =item C<no_defaults>
606  
607 This option is accepted but ignored.
608  
609 =back
610  
611 =head2 eq
612  
613 my $bool = $word->eq($other); # $word must be non-undef
614 # or:
615 my $bool = Lingua::TokiPona::Word::eq($word, $other); # $word can be undef
616  
617 (since v0.01)
618  
619 Compares two words to be equal.
620  
621 If both words are C<undef> they are considered equal.
622  
623 If C<$word> or C<$other> is not an instance of L<Lingua::TokiPona::Word> or C<undef>
624 L</new> with the type C<from> is used.
625  
626 The operators L<perlop/eq> and L<perlop/ne> are overloaded to this method.
627  
628 See also: L<Lingua::Generic::Interface::Word/eq>.
629  
630 =head2 cmp
631  
632 my $val = $word->cmp($other); # $word must be non-undef
633 # or:
634 my $val = Lingua::TokiPona::Word::cmp($word, $other); # $word can be undef
635  
636 (experimental since v0.01)
637  
638 Compares the words similar to C<cmp>. This method can be used to order words.
639 To check for them to be equal see L</eq>.
640  
641 The parameters are parsed the same way as L</eq>.
642  
643 The operator L<perlop/cmp> is overloaded to this method.
644  
645 If this method is used for sorting the exact resulting order is not defined. However:
646  
647 =over
648  
649 =item *
650  
651 The order is stable
652  
653 =item *
654  
655 The order is the same for C<$a-E<gt>cmp($b)> as for C<- $b-E<gt>cmp($a)>.
656  
657 =back
658  
659 See also: L<Lingua::Generic::Interface::Word/cmp>.
660  
661 =head2 has_type
662  
663 my $type = $word->has_type( [ %opts ] );
664  
665 (since v0.02)
666  
667 Returns the type of the word which will always be the same for all words: a Toki Pona word.
668  
669 B<Note:>
670 If you want to know about other roles (e.g. particle vs. noun) this is the wrong method for you.
671  
672 The following options are accepted:
673  
674 =over
675  
676 =item C<as>
677  
678 Returns the value as the passed type.
679 All types supported by L<Data::Identifier/as> are supported.
680  
681 =item C<default>
682  
683 This option is accepted but ignored.
684  
685 =item C<no_defaults>
686  
687 This option is accepted but ignored.
688  
689 =back
690  
691 =head2 natural_language
692  
693 my Data::Identifier $natural_language = $word->natural_language;
694  
695 (since v0.03)
696  
697 Returns the natural language this word is in.
698  
699 For Toki Pona words it will always return Toki Pona.
700 However this method might be useful together with other modules from the C<Lingua> namespace.
701  
702 See also: L<Lingua::Generic::Interface::Word/natural_language>.
703  
704 =head2 register
705  
706 $word->register
707  
708 (since v0.04)
709  
710 Implements L<Lingua::Generic::Interface::Word/register>.
711 As all words known by this module are always registered anyway this is a no-op.
712  
713 =head2 stem
714  
715 my Lingua::TokiPona::Word $stem = $word->stem
716  
717 (since v0.04)
718  
719 Implements L<Lingua::Generic::Interface::Word/stem>.
720 As all Toki Pona words are stems anyway this is a no-op.
721  
722 =head2 concepts
723  
724 my @concepts = $word->concepts;
725  
726 (experimental since v0.04)
727  
728 Implements L<Lingua::Generic::Interface::Word/stem>.
729 Returns a list of related concepts.
730  
731 =head2 known
732  
733 my @list = Lingua::TokiPona::Word->known($class [, %opts ] );
734  
735 (since v0.01)
736  
737 Returns the known items for the given class.
738  
739 For details and supported options see L<Data::Identifier::Interface::Known/known>.
740  
741 The following classes are supported:
742  
743 =over
744  
745 =item C<:all>
746  
747 (since v0.01)
748  
749 Returns all known things.
750  
751 =item C<word>
752  
753 (since v0.03)
754  
755 Returns all known words.
756  
757 =item C<words>
758  
759 (since v0.02, deprecated since 0.03)
760  
761 Deprecated alias for C<word>.
762  
763 =item C<stopword>
764  
765 (since v0.02)
766  
767 Returns all known stopwords.
768  
769 =back
770  
771 =head1 AUTHOR
772  
773 Philipp Schafft <lion@cpan.org>
774  
775 =head1 COPYRIGHT AND LICENSE
776  
777 This software is Copyright (c) 2026 by Philipp Schafft <lion@cpan.org>.
778  
779 This is free software, licensed under:
780  
781 The Artistic License 2.0 (GPL Compatible)
782  
783 =cut
« blib/lib/Lingua/TokiPona/Word.pm ↑ Summary