blib/lib/Lingua/Zompist/Cuezi.pm

filter: Statementstmt 14.0% 108 / 767 Branchbran 8.2% 47 / 568 Conditioncond 2.8% 11 / 393 MC/DCmcdc 0.0% 0 / 245 Subroutinesub 15.0% 6 / 40 Podpod 53.8% 7 / 13 totaltotal 8.8% 179 / 2026 CC 448 SCAR 63.2
CC
448
Cov
10%
part
1892.0
noun
946.3
inf
870.0
CRAP 555.9
↑ Summary
1 package Lingua::Zompist::Cuezi;
2 # vim:set sw=2 et encoding=utf-8 fileencoding=utf-8 keymap=cuezi:
3  
4 7 ▶use 5.005;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 7 require Exporter;
8 7 ▶use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS %verb);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 7 @ISA = qw(Exporter);
10  
11 # Items to export into callers namespace by default. Note: do not export
12 # names by default without a very good reason. Use EXPORT_OK instead.
13 # Do not simply export all your public functions/methods/constants.
14  
15 # This allows declaration use Lingua::Zompist::Cuezi ':all';
16 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
17 # will save memory.
18 7 %EXPORT_TAGS = (
19 'all' => [ qw(
20 %verb
21 inf
22 part
23 noun
24 root
25 adj
26 comp
27 comb
28 ) ],
29 );
30  
31 7 @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
32  
33 7 @EXPORT = qw(
34
35 );
36 7 $VERSION = '0.01';
37  
38  
39 7 my @persons = qw(sēo/sēi led/lei tāu/tāi tazū/letazū māux cayū);
40  
41 7 my @cases = qw(nom gen acc dat abl ins);
42  
43 7 my @numbers = qw(sing pl);
44  
45 7 my @genders = qw(masc neut fem);
46  
47 7 my $voiced = qr/[bdgvzmn]/; # stops don't assimilate before laterals l r,
48 # according to Mark
49 7 my $unvoiced = qr/[ptcfsx]/;
50 7 my $consonant = qr/[ptcbdgfsxvzmnlr]/;
51 7 my $stop = qr/[ptcbdg]/;
52 7 my $vstop = qr/[bdg]/;
53 7 my $ustop = qr/[ptc]/;
54 7 my $labial = qr/[mbpl]/;
55 7 my $dental = qr/[tdcgx]/;
56 7 my $vowel = qr/[aeiou]/;
57 7 my $anyvowel = qr/(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/;
58 7 my $vlong = qr/(?:ā|ē|ī|ō|ū)/;
59 7 my $vcirc = qr/(?:â|ê|î|ô|û)/;
60 7 my $alteri = qr/[tcgx]/;
61 7 my $altere = qr/[tcg]/;
62 7 my $altered = qr/[syc]/;
63  
64 7 my %voiced = (
65 'p' => 'b',
66 't' => 'd',
67 'c' => 'g',
68 'f' => 'v',
69 's' => 'z',
70 );
71  
72 7 my %unvoiced = reverse %voiced;
73  
74 7 my %alter = (
75 't' => 's',
76 'c' => 's',
77 'g' => 'y',
78 'x' => 'c',
79 );
80  
81 # change root to...
82 7 my %rootchange = (
83 s => {
84 'orbesiu' => 'c', # noun
85 'lusi' => 't', # noun
86 'brisê' => 't', # verb
87 'babrisê' => 't', # verb
88 'cammisi' => 'c', # adjective
89 'dosi' => 't', # noun
90 'lācasi' => 't', # noun
91 'lusi' => 't', # noun
92 'pīsi' => 't', # verb
93 'bapīsi' => 't', # verb
94 'pose' => 't', # adjective
95 'rāsi' => 't', # noun
96 'ruyise' => 't', # adjective
97 'salese' => 't', # verb
98 'basalese' => 't', # verb
99 'sāsi' => 'c', # verb
100 'basāsi' => 'c', # verb
101 'xosê' => 't', # verb
102 'baxosê' => 't', # verb
103 },
104 y => {
105 'bêyi' => 'g', # verb
106 'babêyi' => 'g', # verb
107 'clāye' => 'g', # verb
108 'baclāye' => 'g', # verb
109 'creyê' => 'g', # verb
110 'bacreyê' => 'g', # verb
111 'drayê' => 'g', # verb
112 'badrayê' => 'g', # verb
113 'exdrayê' => 'g', # verb
114 'baexdrayê' => 'g',# verb
115 'fabēyi' => 'g', # verb
116 'bafabēyi' => 'g', # verb
117 'usayi' => 'g', # noun
118 'xlayê' => 'g', # verb
119 'baxlayê' => 'g', # verb
120 'yayê' => 'g', # verb
121 'bayayê' => 'g', # verb
122 },
123 c => {
124 '' => 'x',
125 },
126 );
127  
128  
129 # Which conjugation is a specific verb?
130  
131 7 my %conj = (
132 'alirê' => 1,
133 'ambrozâ' => 2,
134 'aviê' => 1,
135 'ayisâ' => 2,
136 'bâ' => 2,
137 'babrivori' => 4,
138 'bamoêli' => 4,
139 'banilerê' => 3,
140 'bapomi' => 4,
141 'barīdi' => 4,
142 'bēre' => 1,
143 'bēse' => 1,
144 'bêti' => 4,
145 'bêyi' => 4,
146 'brinâ' => 2,
147 'brisê' => 3,
148 'brosivê' => 1,
149 'brozâ' => 2,
150 'būga' => 2, # before front vowels: ūg --> ūi! (TODO)
151 'cadi' => 4,
152 'cāpi' => 4,
153 'cāurê' => 1,
154 'cisi' => 4,
155 'civê' => 1,
156 'clāye' => 5, # y --> g
157 'coêli' => 4,
158 'cōli' => 4, # cīli is a misconversion, according to Mark
159 'cranivê' => 1,
160 'crêsi' => 4,
161 'creyê' => 3, # y --> g
162 'curi' => 4,
163 'dâ' => 2,
164 'dei' => 4,
165 'diazami' => 4,
166 'drâcê' => 3,
167 'dralāda' => 2,
168 'drayê' => 3, # y --> g
169 'drogâ' => 2, # g -> y TODO
170 'drouvê' => 1,
171 'duli' => 4,
172 'duni' => 4,
173 'duntracê' => 3,
174 'êcuri' => 4,
175 'embesê' => 1, # this has a question mark in the document
176 # 'esc' => 2,
177 'exdrayê' => 1, # y --> g
178 'fabēyi' => 4,
179 'fāsi' => 4,
180 'faleriê' => 3,
181 'fi' => 4,
182 'fūra' => 2,
183 'gāema' => 2,
184 'gâsi' => 4,
185 'gobrinâ' => 2,
186 'gocivê' => 1,
187 'gocuri' => 4,
188 # 'goes' => 2, # conjugates like esc
189 'golôdi' => 4,
190 'îcâ' => 2,
191 'lāda' => 2,
192 'lanê' => 1,
193 'lerê' => 3,
194 'lerisuê' => 3,
195 'lûre' => 5,
196 'lūve' => 1,
197 'mê' => 1,
198 'mētuda' => 2,
199 'mētulerê' => 3,
200 'missê' => 1,
201 'mizida' => 2,
202 'mûstolê' => 3,
203 'nalerê' => 3,
204 'namâsiê' => 3,
205 'natēre' => 5,
206 'nîê' => 3,
207 'nizanê' => 3,
208 'nōue' => 5,
209 'nure' => 5,
210 # 'ogonê' => 'P', # passive voice only
211 'ōibâ' => 2, # or ōiba? It's from ōi + bâ
212 'ōicopa' => 2,
213 'ōinote' => 5,
214 'ōisizi' => 4,
215 # 'omê' => 'P', # passive voice only; < mê (1)
216 # 'onê' => 'P', # passive voice only
217 'ori' => 4,
218 'pelê' => 1,
219 'pêtâ' => 2,
220 'pisi' => 4,
221 'pīsi' => 4,
222 'rēne' => 3,
223 'rêsê' => 3,
224 'retê' => 3,
225 'ridi' => 4,
226 'ripâ' => 2,
227 'risoni' => 4,
228 'rīxa' => 2, # x --> c TODO?
229 'rōci' => 4,
230 'rusê' => 1,
231 'sālāda' => 2,
232 'salese' => 5, # s --> t TODO
233 'sāsi' => 4,
234 'selirê' => '1',
235 'sile' => 5,
236 'sisi' => 4,
237 'sizi' => 4,
238 'sofusê' => 3,
239 'somâ' => 2,
240 'sonure' => 5,
241 'sûduni' => 4,
242 'sulāda' => 2,
243 'sûmissê' => 1,
244 'sunutāne' => 3,
245 'sunōibâ' => 2,
246 'taige' => 5,
247 'tâsi' => 4,
248 'tēre' => 5,
249 # 'ties' => 2, # conjugates like esc
250 'tolê' => 3,
251 'tôsê' => 3,
252 'usāle' => 3,
253 'utāne' => 3,
254 'vissê' => 1,
255 'vissivê' => 1,
256 'vûne' => 3,
257 'xēcuvissê' => 1, # or xēcuvisse? < xēcu + vissê
258 'xlayê' => 1, # y --> g
259 'xosê' => 1, # s --> t TODO
260 'yayê' => 3, # y --> g
261 'zamêrê' => 3,
262 'zicuê' => 3,
263 'zīde' => 3,
264 );
265  
266  
267 # And now, the gigantic horror structure that is the Cuêzi verb!
268  
269 # the actual structure itself.
270 %verb = (
271 normal => {
272 active => {
273 perfect => {
274 definite => {
275 0 ▶ present => sub {
Subroutine __ANON__: not called CC=18 SCAR=58.3
276 # normal active perfect definite present
277 0 my($verb, $conj) = @_;
278 0 my $stem = $verb;
279 0 my $table;
280  
281 0 ▶ return [ qw( sāi sēi ê zāmo zāzi zota ) ] if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
282  
283 # Try to look up the conjugation if we're supposed to guess
284 0 ▶ $conj ||= $conj{$verb};
Condition0%0/3
$conj ||= $conj{$verb}
l!l&&r!l&&!r
000
MC/DC0%0/2
$conj ||= $conj{$verb}
$conj $conj{$verb}
Truth table0%0/3
A ||= B
A= $conjB= $conj{$verb}
ABresult
1X1
011
000
285  
286 # Do we still not know? Try to guess from the ending
287 # This only works for conjugations 2 (â a) and 4 (i)
288 # -e could be any of 1 3 5; -ê either of 1 3
289 0 ▶ unless(defined $conj) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $conj) 0 0 0
290 0 ▶ if($verb =~ m/(?:â|a)$/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($verb =~ /(?:\303\242|a)$/) { } 0 0 0
elsif ($verb =~ /i$/) { } 0 0 0
291 0 $conj = 2;
292 } elsif($verb =~ m/i$/) {
293 0 $conj = 4;
294 } else {
295 0 return;
296 }
297 }
298  
299 0 ▶ if($conj == 1) {
Branch: 5 branches
BranchTrueFalseTotal
if ($conj == 1) { } 0 0 0
elsif ($conj == 2) { } 0 0 0
elsif ($conj == 3) { } 0 0 0
elsif ($conj == 4) { } 0 0 0
elsif ($conj == 5) { } 0 0 0
300 0 $stem =~ s/(?:ê|e)$//;
301 # īmo īzi are misconversions, according to Mark
302 0 $table = [ map "$stem$_", qw( āo ēo e ōmo ōzi ota ) ];
303 } elsif($conj == 2) {
304 0 $stem =~ s/(?:â|a)$//;
305 0 $table = [ map "$stem$_", qw( āi ēi e āmo āzi ota ) ];
306 } elsif($conj == 3) {
307 0 $stem =~ s/(?:ê|e)$//;
308 0 $table = [ map "$stem$_", qw( āi ēi e āmo āzi itu ) ];
309 } elsif($conj == 4) {
310 0 $stem =~ s/i$//;
311 0 $table = [ map "$stem$_", qw( āu ēu i umo uzi itu ) ];
312 } elsif($conj == 5) {
313 0 $stem =~ s/e$//;
314 0 $table = [ map "$stem$_", qw( āu ēu e umo uzi uta ) ];
315 } else {
316 0 return;
317 }
318  
319 0 for(@$table) {
320 # change root consonant before -e and -i
321 # except when preceded by another consonant or a circumflexed vowel
322 0 ▶ if(/$alteri(?:i(?:tu)?)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$alteri(?:i(?:tu)?)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:i(?:tu)?)$/o) 0 0 0
Condition0%0/3
/$alteri(?:i(?:tu)?)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:i(?:tu)?)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$alteri(?:i(?:tu)?)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:i(?:tu)?)$/o
/$alteri(?:i(?:tu)?)$/o not /(?:$vcirc|$consonant)(?:$alteri)(?:i(?:tu)?)$/o
Truth table0%0/3
A and not(B)
A= /$alteri(?:i(?:tu)?)$/oB= not /(?:$vcirc|$consonant)(?:$alteri)(?:i(?:tu)?)$/o
ABresult
0X0
100
111
323 && !/(?:$vcirc|$consonant)(?:$alteri)(?:i(?:tu)?)$/o) {
324 0 s/($alteri)(?=(?:i(?:tu)?)$)/$alter{$1}/o;
325 }
326 0 ▶ if(/$altere(?:e|ē[oiu])$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$altere(?:e|\304\223[oiu])$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:e|\304\223[oiu])$/o) 0 0 0
Condition0%0/3
/$altere(?:e|\304\223[oiu])$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:e|\304\223[oiu])$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$altere(?:e|\304\223[oiu])$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:e|\304\223[oiu])$/o
/$altere(?:e|\304\223[oiu])$/o not /(?:$vcirc|$consonant)(?:$altere)(?:e|\304\223[oiu])$/o
Truth table0%0/3
A and not(B)
A= /$altere(?:e|\304\223[oiu])$/oB= not /(?:$vcirc|$consonant)(?:$altere)(?:e|\304\223[oiu])$/o
ABresult
0X0
100
111
327 && !/(?:$vcirc|$consonant)(?:$altere)(?:e|ē[oiu])$/o) {
328 0 s/($altere)(?=(?:e|ē[oiu])$)/$alter{$1}/o;
329 }
330  
331 # restore original root consonant before -a -o -u
332 0 ▶ if(/([syc])(?:ō(?:mo|zi)|ota|ā(?:[oiu]|mo|zi)|u(?:mo|zi|ta))$/
Branch: 1 branch
BranchTrueFalseTotal
if (/([syc])(?:\305\215(?:mo|zi)|ota|\304\201(?:[oiu]|mo|zi)|u(?:mo|zi|ta))$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
/([syc])(?:\305\215(?:mo|zi)|ota|\304\201(?:[oiu]|mo|zi)|u(?:mo|zi|ta))$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
/([syc])(?:\305\215(?:mo|zi)|ota|\304\201(?:[oiu]|mo|zi)|u(?:mo|zi|ta))$/ and exists $rootchange{$1}{$verb}
/([syc])(?:\305\215(?:mo|zi)|ota|\304\201(?:[oiu]|mo|zi)|u(?:mo|zi|ta))$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= /([syc])(?:\305\215(?:mo|zi)|ota|\304\201(?:[oiu]|mo|zi)|u(?:mo|zi|ta))$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
333 && exists $rootchange{$1}{$verb})
334 {
335 0 s/([syc])(?=(?:ō(?:mo|zi)|ota|ā(?:[oiu]|mo|zi)|u(?:mo|zi|ta))$)/$rootchange{$1}{$verb}/;
336 }
337 }
338  
339 0 return $table;
340 },
341 0 ▶ past => sub {
Subroutine __ANON__: not called CC=18 SCAR=58.3
342 # normal active perfect definite past
343 0 my($verb, $conj) = @_;
344 0 my $stem = $verb;
345 0 my $table;
346  
347 # īmo īzi are misconversions, according to Mark
348 0 ▶ return [ qw( sio sio sā sōmo sōzi sītu ) ] if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
349  
350 # Try to look up the conjugation if we're supposed to guess
351 0 ▶ $conj ||= $conj{$verb};
Condition0%0/3
$conj ||= $conj{$verb}
l!l&&r!l&&!r
000
MC/DC0%0/2
$conj ||= $conj{$verb}
$conj $conj{$verb}
Truth table0%0/3
A ||= B
A= $conjB= $conj{$verb}
ABresult
1X1
011
000
352  
353 # Do we still not know? Try to guess from the ending
354 # This only works for conjugations 2 (â a) and 4 (i)
355 # -e could be any of 1 3 5; -ê either of 1 3
356 0 ▶ unless(defined $conj) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $conj) 0 0 0
357 0 ▶ if($verb =~ m/(?:â|a)$/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($verb =~ /(?:\303\242|a)$/) { } 0 0 0
elsif ($verb =~ /i$/) { } 0 0 0
358 0 $conj = 2;
359 } elsif($verb =~ m/i$/) {
360 0 $conj = 4;
361 } else {
362 0 return;
363 }
364 }
365  
366 0 ▶ if($conj == 1) {
Branch: 5 branches
BranchTrueFalseTotal
if ($conj == 1) { } 0 0 0
elsif ($conj == 2) { } 0 0 0
elsif ($conj == 3) { } 0 0 0
elsif ($conj == 4) { } 0 0 0
elsif ($conj == 5) { } 0 0 0
367 0 $stem =~ s/(?:ê|e)$//;
368 0 $table = [ map "$stem$_", qw( iu iu ū ūmo ūzi ūta ) ];
369 } elsif($conj == 2) {
370 0 $stem =~ s/(?:â|a)$//;
371 # īmo īzi are misconversions, according to Mark
372 0 $table = [ map "$stem$_", qw( io io ā ōmo ōzi ītu ) ];
373 } elsif($conj == 3) {
374 0 $stem =~ s/(?:ê|e)$//;
375 # īmo īzi are misconversions, according to Mark
376 0 $table = [ map "$stem$_", qw( io io ā ōmo ōzi ītu ) ];
377 } elsif($conj == 4) {
378 0 $stem =~ s/i$//;
379 0 $table = [ map "$stem$_", qw( ie ie ē ēmo ēzi ītu ) ];
380 } elsif($conj == 5) {
381 0 $stem =~ s/e$//;
382 0 $table = [ map "$stem$_", qw( ie ie ē ēmo ēzi ītu ) ];
383 } else {
384 0 return;
385 }
386  
387 0 for(@$table) {
388 # change root consonant before -e and -i
389 # except when preceded by another consonant or a circumflexed vowel
390 # iu io ie ē ēmo ēzi ītu
391 0 ▶ if(/$alteri(?:i[uoe]|ītu)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$alteri(?:i[uoe]|\304\253tu)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:i[uoe]|\304\253tu)$/o) 0 0 0
Condition0%0/3
/$alteri(?:i[uoe]|\304\253tu)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:i[uoe]|\304\253tu)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$alteri(?:i[uoe]|\304\253tu)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:i[uoe]|\304\253tu)$/o
/$alteri(?:i[uoe]|\304\253tu)$/o not /(?:$vcirc|$consonant)(?:$alteri)(?:i[uoe]|\304\253tu)$/o
Truth table0%0/3
A and not(B)
A= /$alteri(?:i[uoe]|\304\253tu)$/oB= not /(?:$vcirc|$consonant)(?:$alteri)(?:i[uoe]|\304\253tu)$/o
ABresult
0X0
100
111
392 && !/(?:$vcirc|$consonant)(?:$alteri)(?:i[uoe]|ītu)$/o) {
393 0 s/($alteri)(?=(?:i[uoe]|ītu)$)/$alter{$1}/o;
394 }
395 0 ▶ if(/$altere(?:ē(?:mo|zi)?)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$altere(?:\304\223(?:mo|zi)?)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:\304\223(?:mo|zi)?)$/o) 0 0 0
Condition0%0/3
/$altere(?:\304\223(?:mo|zi)?)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:\304\223(?:mo|zi)?)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$altere(?:\304\223(?:mo|zi)?)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:\304\223(?:mo|zi)?)$/o
/$altere(?:\304\223(?:mo|zi)?)$/o not /(?:$vcirc|$consonant)(?:$altere)(?:\304\223(?:mo|zi)?)$/o
Truth table0%0/3
A and not(B)
A= /$altere(?:\304\223(?:mo|zi)?)$/oB= not /(?:$vcirc|$consonant)(?:$altere)(?:\304\223(?:mo|zi)?)$/o
ABresult
0X0
100
111
396 && !/(?:$vcirc|$consonant)(?:$altere)(?:ē(?:mo|zi)?)$/o) {
397 0 s/($altere)(?=(?:ē(?:mo|zi)?)$)/$alter{$1}/o;
398 }
399  
400 # restore original root consonant before -a -o -u
401 # ū ūmo ūzi ūta ōmo ōzi ā
402 0 ▶ if(/([syc])(?:ō(?:mo|zi)|ā|ū(?:mo|zi|ta)?)$/
Branch: 1 branch
BranchTrueFalseTotal
if (/([syc])(?:\305\215(?:mo|zi)|\304\201|\305\253(?:mo|zi|ta)?)$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
/([syc])(?:\305\215(?:mo|zi)|\304\201|\305\253(?:mo|zi|ta)?)$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
/([syc])(?:\305\215(?:mo|zi)|\304\201|\305\253(?:mo|zi|ta)?)$/ and exists $rootchange{$1}{$verb}
/([syc])(?:\305\215(?:mo|zi)|\304\201|\305\253(?:mo|zi|ta)?)$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= /([syc])(?:\305\215(?:mo|zi)|\304\201|\305\253(?:mo|zi|ta)?)$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
403 && exists $rootchange{$1}{$verb})
404 {
405 0 s/([syc])(?=(?:ō(?:mo|zi)|ā|ū(?:mo|zi|ta)?)$)/$rootchange{$1}{$verb}/;
406 }
407 }
408  
409 0 return $table;
410 },
411 0 ▶ 'past anterior' => sub {
Subroutine __ANON__: not called CC=21 SCAR=61.4
412 # normal active perfect definite past anterior
413 0 my($verb, $conj) = @_;
414 0 my $stem = $verb;
415 0 my $table;
416  
417 0 ▶ ($conj, $verb, $stem) = (2, 'zâ', 'zâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
418  
419 # Try to look up the conjugation if we're supposed to guess
420 0 ▶ $conj ||= $conj{$verb};
Condition0%0/3
$conj ||= $conj{$verb}
l!l&&r!l&&!r
000
MC/DC0%0/2
$conj ||= $conj{$verb}
$conj $conj{$verb}
Truth table0%0/3
A ||= B
A= $conjB= $conj{$verb}
ABresult
1X1
011
000
421  
422 # Do we still not know? Try to guess from the ending
423 # This only works for conjugations 2 (â a) and 4 (i)
424 # -e could be any of 1 3 5; -ê either of 1 3
425 0 ▶ unless(defined $conj) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $conj) 0 0 0
426 0 ▶ if($verb =~ m/(?:â|a)$/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($verb =~ /(?:\303\242|a)$/) { } 0 0 0
elsif ($verb =~ /i$/) { } 0 0 0
427 0 $conj = 2;
428 } elsif($verb =~ m/i$/) {
429 0 $conj = 4;
430 } else {
431 0 return;
432 }
433 }
434  
435 0 ▶ if($conj == 1) {
Branch: 5 branches
BranchTrueFalseTotal
if ($conj == 1) { } 0 0 0
elsif ($conj == 2) { } 0 0 0
elsif ($conj == 3) { } 0 0 0
elsif ($conj == 4) { } 0 0 0
elsif ($conj == 5) { } 0 0 0
436 0 $stem =~ s/(?:ê|e)$/er/;
437 0 ▶ if($stem =~ /$altere(?:er)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
$stem =~ /$altere(?:er)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:er)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
ABresult
0X0
100
111
438 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) {
439 0 $stem =~ s/($altere)(?=er$)/$alter{$1}/o;
440 }
441 0 $table = [ map "$stem$_", qw( iu iu ū ūmo ūzi ūta ) ];
442 } elsif($conj == 2) {
443 0 $stem =~ s/(?:â|a)$/er/;
444 0 ▶ if($stem =~ /$altere(?:er)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
$stem =~ /$altere(?:er)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:er)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
ABresult
0X0
100
111
445 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) {
446 0 $stem =~ s/($altere)(?=er$)/$alter{$1}/o;
447 }
448 # īmo īzi are misconversions, according to Mark
449 0 $table = [ map "$stem$_", qw( io io ā ōmo ōzi ītu ) ];
450 } elsif($conj == 3) {
451 0 $stem =~ s/(?:ê|e)$/er/;
452 0 ▶ if($stem =~ /$altere(?:er)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
$stem =~ /$altere(?:er)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:er)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
ABresult
0X0
100
111
453 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) {
454 0 $stem =~ s/($altere)(?=er$)/$alter{$1}/o;
455 }
456 # īmo īzi are misconversions, according to Mark
457 0 $table = [ map "$stem$_", qw( io io ā ōmo ōzi ītu ) ];
458 } elsif($conj == 4) {
459 0 $stem =~ s/i$/ir/;
460 0 ▶ if($stem =~ /$alteri(?:ir)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:ir)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:ir)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:ir)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o
$stem =~ /$alteri(?:ir)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:ir)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o
ABresult
0X0
100
111
461 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o) {
462 0 $stem =~ s/($alteri)(?=ir$)/$alter{$1}/o;
463 }
464 0 $table = [ map "$stem$_", qw( ie ie ē ēmo ēzi ītu ) ];
465 } elsif($conj == 5) {
466 0 $stem =~ s/e$/er/;
467 0 ▶ if($stem =~ /$altere(?:er)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
$stem =~ /$altere(?:er)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:er)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
ABresult
0X0
100
111
468 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) {
469 0 $stem =~ s/($altere)(?=er$)/$alter{$1}/o;
470 }
471 0 $table = [ map "$stem$_", qw( ie ie ē ēmo ēzi ītu ) ];
472 } else {
473 0 return;
474 }
475  
476 0 return $table;
477 },
478 0 ▶ future => sub {
Subroutine __ANON__: not called CC=21 SCAR=61.4
479 # normal active perfect definite future
480 0 my($verb, $conj) = @_;
481 0 my $stem = $verb;
482 0 my $table;
483  
484 0 ▶ ($conj, $verb, $stem) = (2, 'zâ', 'zâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
485  
486 # Try to look up the conjugation if we're supposed to guess
487 0 ▶ $conj ||= $conj{$verb};
Condition0%0/3
$conj ||= $conj{$verb}
l!l&&r!l&&!r
000
MC/DC0%0/2
$conj ||= $conj{$verb}
$conj $conj{$verb}
Truth table0%0/3
A ||= B
A= $conjB= $conj{$verb}
ABresult
1X1
011
000
488  
489 # Do we still not know? Try to guess from the ending
490 # This only works for conjugations 2 (â a) and 4 (i)
491 # -e could be any of 1 3 5; -ê either of 1 3
492 0 ▶ unless(defined $conj) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $conj) 0 0 0
493 0 ▶ if($verb =~ m/(?:â|a)$/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($verb =~ /(?:\303\242|a)$/) { } 0 0 0
elsif ($verb =~ /i$/) { } 0 0 0
494 0 $conj = 2;
495 } elsif($verb =~ m/i$/) {
496 0 $conj = 4;
497 } else {
498 0 return;
499 }
500 }
501  
502 0 ▶ if($conj == 1) {
Branch: 5 branches
BranchTrueFalseTotal
if ($conj == 1) { } 0 0 0
elsif ($conj == 2) { } 0 0 0
elsif ($conj == 3) { } 0 0 0
elsif ($conj == 4) { } 0 0 0
elsif ($conj == 5) { } 0 0 0
503 0 $stem =~ s/(?:ê|e)$/il/;
504 0 ▶ if($stem =~ /$alteri(?:il)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
$stem =~ /$alteri(?:il)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:il)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
ABresult
0X0
100
111
505 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) {
506 0 $stem =~ s/($alteri)(?=il$)/$alter{$1}/o;
507 }
508 # īmo īzi are misconversions, according to Mark
509 0 $table = [ map "$stem$_", qw( āo ēo e ōmo ōzi ota ) ];
510 } elsif($conj == 2) {
511 0 $stem =~ s/(?:â|a)$/al/;
512 0 ▶ if($stem =~ /([syc])al$/
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /([syc])al$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
$stem =~ /([syc])al$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /([syc])al$/ and exists $rootchange{$1}{$verb}
$stem =~ /([syc])al$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= $stem =~ /([syc])al$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
513 && exists $rootchange{$1}{$verb})
514 {
515 0 $stem =~ s/([syc])(?=al$)/$rootchange{$1}{$verb}/;
516 }
517 0 $table = [ map "$stem$_", qw( āi ēi e āmo āzi ota ) ];
518 } elsif($conj == 3) {
519 0 $stem =~ s/(?:ê|e)$/il/;
520 0 ▶ if($stem =~ /$alteri(?:il)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
$stem =~ /$alteri(?:il)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:il)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
ABresult
0X0
100
111
521 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) {
522 0 $stem =~ s/($alteri)(?=il$)/$alter{$1}/o;
523 }
524 0 $table = [ map "$stem$_", qw( āi ēi e āmo āzi itu ) ];
525 } elsif($conj == 4) {
526 0 $stem =~ s/i$/il/;
527 0 ▶ if($stem =~ /$alteri(?:il)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
$stem =~ /$alteri(?:il)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:il)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
ABresult
0X0
100
111
528 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) {
529 0 $stem =~ s/($alteri)(?=il$)/$alter{$1}/o;
530 }
531 0 $table = [ map "$stem$_", qw( āu ēu i umo uzi itu ) ];
532 } elsif($conj == 5) {
533 0 $stem =~ s/e$/il/;
534 0 ▶ if($stem =~ /$alteri(?:il)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
$stem =~ /$alteri(?:il)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:il)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
ABresult
0X0
100
111
535 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) {
536 0 $stem =~ s/($alteri)(?=il$)/$alter{$1}/o;
537 }
538 0 $table = [ map "$stem$_", qw( āu ēu e umo uzi uta ) ];
539 } else {
540 0 return;
541 }
542  
543 0 return $table;
544 },
545 },
546 remote => {
547 0 ▶ present => sub {
Subroutine __ANON__: not called CC=21 SCAR=61.4
548 # normal active perfect remote present
549 0 my($verb, $conj) = @_;
550 0 my $stem = $verb;
551 0 my $table;
552  
553 0 ▶ return [ qw( zetāu zesēu zesê zetumi zetezi zesitu ) ] if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
554  
555 # esc is nearly regular, except for zesê instead of zesi.
556 # ($conj, $verb, $stem) = (4, 'zi', 'zi') if $verb eq 'esc';
557  
558 # Try to look up the conjugation if we're supposed to guess
559 0 ▶ $conj ||= $conj{$verb};
Condition0%0/3
$conj ||= $conj{$verb}
l!l&&r!l&&!r
000
MC/DC0%0/2
$conj ||= $conj{$verb}
$conj $conj{$verb}
Truth table0%0/3
A ||= B
A= $conjB= $conj{$verb}
ABresult
1X1
011
000
560  
561 # Do we still not know? Try to guess from the ending
562 # This only works for conjugations 2 (â a) and 4 (i)
563 # -e could be any of 1 3 5; -ê either of 1 3
564 0 ▶ unless(defined $conj) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $conj) 0 0 0
565 0 ▶ if($verb =~ m/(?:â|a)$/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($verb =~ /(?:\303\242|a)$/) { } 0 0 0
elsif ($verb =~ /i$/) { } 0 0 0
566 0 $conj = 2;
567 } elsif($verb =~ m/i$/) {
568 0 $conj = 4;
569 } else {
570 0 return;
571 }
572 }
573  
574 0 ▶ if($conj == 1) {
Branch: 5 branches
BranchTrueFalseTotal
if ($conj == 1) { } 0 0 0
elsif ($conj == 2) { } 0 0 0
elsif ($conj == 3) { } 0 0 0
elsif ($conj == 4) { } 0 0 0
elsif ($conj == 5) { } 0 0 0
575 0 $stem =~ s/(?:ê|e)$//;
576 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
577 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
578 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
579 }
580 # This is -etīmo and -etīzi in the document, but they are
581 # misconversions of -ō- according to Mark.
582 0 $table = [ map "$stem$_", qw( etāo esēo ese etōmo etōzi etota ) ];
583 } elsif($conj == 2) {
584 0 $stem =~ s/(?:â|a)$//;
585 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
586 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
587 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
588 }
589 0 $table = [ map "$stem$_", qw( ināi inēi ine ināmo ināzi inota ) ];
590 } elsif($conj == 3) {
591 0 $stem =~ s/(?:ê|e)$//;
592 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
593 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
594 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
595 }
596 0 $table = [ map "$stem$_", qw( ināi inēi ine ināmo ināzi initu ) ];
597 } elsif($conj == 4) {
598 0 $stem =~ s/i$//;
599 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
600 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
601 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
602 }
603 0 $table = [ map "$stem$_", qw( etāu esēu esi etumo etuzi esitu ) ];
604 } elsif($conj == 5) {
605 0 $stem =~ s/e$//;
606 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
607 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
608 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
609 }
610 0 $table = [ map "$stem$_", qw( etāu esēu ese etumo etuzi etuta ) ];
611 } else {
612 0 return;
613 }
614  
615 0 return $table;
616 },
617 0 ▶ past => sub {
Subroutine __ANON__: not called CC=21 SCAR=61.4
618 # normal active perfect remote past
619 0 my($verb, $conj) = @_;
620 0 my $stem = $verb;
621 0 my $table;
622  
623 0 ▶ ($conj, $verb, $stem) = (4, 'zi', 'zi') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
624  
625 # Try to look up the conjugation if we're supposed to guess
626 0 ▶ $conj ||= $conj{$verb};
Condition0%0/3
$conj ||= $conj{$verb}
l!l&&r!l&&!r
000
MC/DC0%0/2
$conj ||= $conj{$verb}
$conj $conj{$verb}
Truth table0%0/3
A ||= B
A= $conjB= $conj{$verb}
ABresult
1X1
011
000
627  
628 # Do we still not know? Try to guess from the ending
629 # This only works for conjugations 2 (â a) and 4 (i)
630 # -e could be any of 1 3 5; -ê either of 1 3
631 0 ▶ unless(defined $conj) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $conj) 0 0 0
632 0 ▶ if($verb =~ m/(?:â|a)$/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($verb =~ /(?:\303\242|a)$/) { } 0 0 0
elsif ($verb =~ /i$/) { } 0 0 0
633 0 $conj = 2;
634 } elsif($verb =~ m/i$/) {
635 0 $conj = 4;
636 } else {
637 0 return;
638 }
639 }
640  
641 0 ▶ if($conj == 1) {
Branch: 5 branches
BranchTrueFalseTotal
if ($conj == 1) { } 0 0 0
elsif ($conj == 2) { } 0 0 0
elsif ($conj == 3) { } 0 0 0
elsif ($conj == 4) { } 0 0 0
elsif ($conj == 5) { } 0 0 0
642 0 $stem =~ s/(?:ê|e)$//;
643 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
644 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
645 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
646 }
647 0 $table = [ map "$stem$_", qw( esiu esiu etū etūmo etūzi etūta ) ];
648 } elsif($conj == 2) {
649 0 $stem =~ s/(?:â|a)$//;
650 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
651 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
652 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
653 }
654 # īmo īzi are misconversions, according to Mark
655 0 $table = [ map "$stem$_", qw( inio inio inā inōmo inōzi inītu ) ];
656 } elsif($conj == 3) {
657 0 $stem =~ s/(?:ê|e)$//;
658 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
659 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
660 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
661 }
662 # īmo īzi are misconversions, according to Mark
663 0 $table = [ map "$stem$_", qw( inio inio inā inōmo inōzi inītu ) ];
664 } elsif($conj == 4) {
665 0 $stem =~ s/i$//;
666 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
667 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
668 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
669 }
670 0 $table = [ map "$stem$_", qw( esie esie esē esēmo esēzi esītu ) ];
671 } elsif($conj == 5) {
672 0 $stem =~ s/e$//;
673 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
674 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
675 0 $stem =~ s/($altere)(?=$)/$alter{$1}/o;
676 }
677 0 $table = [ map "$stem$_", qw( esie esie esē esēmo esēzi esītu ) ];
678 } else {
679 0 return;
680 }
681  
682 0 return $table;
683 },
684 0 ▶ 'past anterior' => sub {
Subroutine __ANON__: not called CC=21 SCAR=61.4
685 # normal active perfect remote past anterior
686 0 my($verb, $conj) = @_;
687 0 my $stem = $verb;
688 0 my $table;
689  
690 0 ▶ ($conj, $verb, $stem) = (4, 'zi', 'zi') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
691  
692 # Try to look up the conjugation if we're supposed to guess
693 0 ▶ $conj ||= $conj{$verb};
Condition0%0/3
$conj ||= $conj{$verb}
l!l&&r!l&&!r
000
MC/DC0%0/2
$conj ||= $conj{$verb}
$conj $conj{$verb}
Truth table0%0/3
A ||= B
A= $conjB= $conj{$verb}
ABresult
1X1
011
000
694  
695 # Do we still not know? Try to guess from the ending
696 # This only works for conjugations 2 (â a) and 4 (i)
697 # -e could be any of 1 3 5; -ê either of 1 3
698 0 ▶ unless(defined $conj) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $conj) 0 0 0
699 0 ▶ if($verb =~ m/(?:â|a)$/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($verb =~ /(?:\303\242|a)$/) { } 0 0 0
elsif ($verb =~ /i$/) { } 0 0 0
700 0 $conj = 2;
701 } elsif($verb =~ m/i$/) {
702 0 $conj = 4;
703 } else {
704 0 return;
705 }
706 }
707  
708 0 ▶ if($conj == 1) {
Branch: 5 branches
BranchTrueFalseTotal
if ($conj == 1) { } 0 0 0
elsif ($conj == 2) { } 0 0 0
elsif ($conj == 3) { } 0 0 0
elsif ($conj == 4) { } 0 0 0
elsif ($conj == 5) { } 0 0 0
709 0 $stem =~ s/(?:ê|e)$/er/;
710 0 ▶ if($stem =~ /$altere(?:er)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
$stem =~ /$altere(?:er)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:er)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
ABresult
0X0
100
111
711 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) {
712 0 $stem =~ s/($altere)(?=er$)/$alter{$1}/o;
713 }
714 0 $table = [ map "$stem$_", qw( esiu esiu etū etūmo etūzi etūta ) ];
715 } elsif($conj == 2) {
716 0 $stem =~ s/(?:â|a)$/er/;
717 0 ▶ if($stem =~ /$altere(?:er)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
$stem =~ /$altere(?:er)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:er)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
ABresult
0X0
100
111
718 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) {
719 0 $stem =~ s/($altere)(?=er$)/$alter{$1}/o;
720 }
721 # īmo īzi are misconversions, according to Mark
722 0 $table = [ map "$stem$_", qw( inio inio inā inōmo inōzi inītu ) ];
723 } elsif($conj == 3) {
724 0 $stem =~ s/(?:ê|e)$/er/;
725 0 ▶ if($stem =~ /$altere(?:er)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
$stem =~ /$altere(?:er)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:er)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
ABresult
0X0
100
111
726 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) {
727 0 $stem =~ s/($altere)(?=er$)/$alter{$1}/o;
728 }
729 # īmo īzi are misconversions, according to Mark
730 0 $table = [ map "$stem$_", qw( inio inio inā inōmo inōzi inītu ) ];
731 } elsif($conj == 4) {
732 0 $stem =~ s/i$/ir/;
733 0 ▶ if($stem =~ /$alteri(?:ir)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:ir)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:ir)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:ir)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o
$stem =~ /$alteri(?:ir)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:ir)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o
ABresult
0X0
100
111
734 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:ir)$/o) {
735 0 $stem =~ s/($alteri)(?=ir$)/$alter{$1}/o;
736 }
737 0 $table = [ map "$stem$_", qw( esie esie esē esēmo esēzi esītu ) ];
738 } elsif($conj == 5) {
739 0 $stem =~ s/e$/er/;
740 0 ▶ if($stem =~ /$altere(?:er)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
$stem =~ /$altere(?:er)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:er)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
ABresult
0X0
100
111
741 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) {
742 0 $stem =~ s/($altere)(?=er$)/$alter{$1}/o;
743 }
744 0 $table = [ map "$stem$_", qw( esie esie esē esēmo esēzi esītu ) ];
745 } else {
746 0 return;
747 }
748  
749 0 return $table;
750 },
751 0 ▶ future => sub {
Subroutine __ANON__: not called CC=21 SCAR=61.4
752 # normal active perfect remote future
753 0 my($verb, $conj) = @_;
754 0 my $stem = $verb;
755 0 my $table;
756  
757 0 ▶ ($conj, $verb, $stem) = (4, 'zi', 'zi') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
758  
759 # Try to look up the conjugation if we're supposed to guess
760 0 ▶ $conj ||= $conj{$verb};
Condition0%0/3
$conj ||= $conj{$verb}
l!l&&r!l&&!r
000
MC/DC0%0/2
$conj ||= $conj{$verb}
$conj $conj{$verb}
Truth table0%0/3
A ||= B
A= $conjB= $conj{$verb}
ABresult
1X1
011
000
761  
762 # Do we still not know? Try to guess from the ending
763 # This only works for conjugations 2 (â a) and 4 (i)
764 # -e could be any of 1 3 5; -ê either of 1 3
765 0 ▶ unless(defined $conj) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $conj) 0 0 0
766 0 ▶ if($verb =~ m/(?:â|a)$/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($verb =~ /(?:\303\242|a)$/) { } 0 0 0
elsif ($verb =~ /i$/) { } 0 0 0
767 0 $conj = 2;
768 } elsif($verb =~ m/i$/) {
769 0 $conj = 4;
770 } else {
771 0 return;
772 }
773 }
774  
775 0 ▶ if($conj == 1) {
Branch: 5 branches
BranchTrueFalseTotal
if ($conj == 1) { } 0 0 0
elsif ($conj == 2) { } 0 0 0
elsif ($conj == 3) { } 0 0 0
elsif ($conj == 4) { } 0 0 0
elsif ($conj == 5) { } 0 0 0
776 0 $stem =~ s/(?:ê|e)$/il/;
777 0 ▶ if($stem =~ /$alteri(?:il)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
$stem =~ /$alteri(?:il)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:il)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
ABresult
0X0
100
111
778 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) {
779 0 $stem =~ s/($alteri)(?=il$)/$alter{$1}/o;
780 }
781 # īmo īzi are misconversions, according to Mark
782 0 $table = [ map "$stem$_", qw( etāo esēo ese etōmo etōzi etota ) ];
783 } elsif($conj == 2) {
784 0 $stem =~ s/(?:â|a)$/al/;
785 0 ▶ if($stem =~ /([syc])al$/
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /([syc])al$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
$stem =~ /([syc])al$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /([syc])al$/ and exists $rootchange{$1}{$verb}
$stem =~ /([syc])al$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= $stem =~ /([syc])al$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
786 && exists $rootchange{$1}{$verb})
787 {
788 0 $stem =~ s/([syc])(?=al$)/$rootchange{$1}{$verb}/;
789 }
790 0 $table = [ map "$stem$_", qw( ināi inēi ine ināmo ināzi inota ) ];
791 } elsif($conj == 3) {
792 0 $stem =~ s/(?:ê|e)$/il/;
793 0 ▶ if($stem =~ /$alteri(?:il)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
$stem =~ /$alteri(?:il)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:il)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
ABresult
0X0
100
111
794 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) {
795 0 $stem =~ s/($alteri)(?=il$)/$alter{$1}/o;
796 }
797 0 $table = [ map "$stem$_", qw( ināi inēi ine ināmo ināzi initu ) ];
798 } elsif($conj == 4) {
799 0 $stem =~ s/i$/il/;
800 0 ▶ if($stem =~ /$alteri(?:il)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
$stem =~ /$alteri(?:il)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:il)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
ABresult
0X0
100
111
801 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) {
802 0 $stem =~ s/($alteri)(?=il$)/$alter{$1}/o;
803 }
804 0 $table = [ map "$stem$_", qw( etāu esēu esi etumo etuzi esitu ) ];
805 } elsif($conj == 5) {
806 0 $stem =~ s/e$/il/;
807 0 ▶ if($stem =~ /$alteri(?:il)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri(?:il)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
$stem =~ /$alteri(?:il)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri(?:il)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
ABresult
0X0
100
111
808 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) {
809 0 $stem =~ s/($alteri)(?=il$)/$alter{$1}/o;
810 }
811 0 $table = [ map "$stem$_", qw( etāu esēu ese etumo etuzi etuta ) ];
812 } else {
813 0 return;
814 }
815  
816 0 return $table;
817 },
818 },
819 },
820 imperfect => {
821 definite => {
822 present => \&imperfect,
823 past => \&imperfect,
824 'past anterior' => \&imperfect,
825 future => \&imperfect,
826 },
827 remote => {
828 present => \&imperfect,
829 past => \&imperfect,
830 'past anterior' => \&imperfect,
831 future => \&imperfect,
832 },
833 },
834 },
835 passive => {
836 perfect => {
837 definite => {
838 0 ▶ present => sub {
Subroutine __ANON__: not called CC=10 SCAR=47.0
839 # normal passive perfect definite present
840 0 my($verb) = @_;
841 0 my $stem = $verb;
842 0 my $table;
843  
844 # TODO - Passive root of xuêsi is oxês- not oxuês-
845 # (All passive forms are affected)
846  
847 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
848  
849 # Passive root of xuêsi is oxês- not oxuês-
850 0 ▶ $stem =~ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
851  
852 # Replace an initial vowel with o-, or add an o-
853 0 ▶ $stem =~ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || $stem =~ s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
$stem =~ s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or $stem =~ s/^/o/ 0 0 0
854  
855 # Delete the final vowel
856 0 $stem =~ s/(?:[eai]|ê|â|î)$//;
857  
858 0 $table = [ map "$stem$_", qw( āl ēl el mal sal tal ) ];
859  
860 0 for(@$table) {
861 # change root consonant before -e
862 # except when preceded by another consonant or a circumflexed vowel
863 0 ▶ if(/$altere(?:el|ēl)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$altere(?:el|\304\223l)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:el|\304\223l)$/o) 0 0 0
Condition0%0/3
/$altere(?:el|\304\223l)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:el|\304\223l)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$altere(?:el|\304\223l)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:el|\304\223l)$/o
/$altere(?:el|\304\223l)$/o not /(?:$vcirc|$consonant)(?:$altere)(?:el|\304\223l)$/o
Truth table0%0/3
A and not(B)
A= /$altere(?:el|\304\223l)$/oB= not /(?:$vcirc|$consonant)(?:$altere)(?:el|\304\223l)$/o
ABresult
0X0
100
111
864 && !/(?:$vcirc|$consonant)(?:$altere)(?:el|ēl)$/o) {
865 0 s/($altere)(?=(?:el|ēl)$)/$alter{$1}/o;
866 }
867  
868 # restore original root consonant before -ā or consonant
869 0 ▶ if(/([syc])(?:āl|[mst]al)$/
Branch: 1 branch
BranchTrueFalseTotal
if (/([syc])(?:\304\201l|[mst]al)$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
/([syc])(?:\304\201l|[mst]al)$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
/([syc])(?:\304\201l|[mst]al)$/ and exists $rootchange{$1}{$verb}
/([syc])(?:\304\201l|[mst]al)$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= /([syc])(?:\304\201l|[mst]al)$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
870 && exists $rootchange{$1}{$verb})
871 {
872 0 s/([syc])(?=(?:āl|[mst]al)$)/$rootchange{$1}{$verb}/;
873 }
874 }
875  
876 0 return $table;
877 },
878 0 ▶ past => sub {
Subroutine __ANON__: not called CC=10 SCAR=47.0
879 # normal passive perfect definite past
880 0 my($verb) = @_;
881 0 my $stem = $verb;
882 0 my $table;
883  
884 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
885  
886 # Passive root of xuêsi is oxês- not oxuês-
887 0 ▶ $stem =~ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
888  
889 # Replace an initial vowel with o-, or add an o-
890 0 ▶ $stem =~ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || $stem =~ s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
$stem =~ s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or $stem =~ s/^/o/ 0 0 0
891  
892 # Delete the final vowel
893 0 $stem =~ s/(?:[eai]|ê|â|î)$//;
894  
895 0 $table = [ map "$stem$_", qw( il il āl mul sul tul ) ];
896  
897 0 for(@$table) {
898 # change root consonant before -i
899 # except when preceded by another consonant or a circumflexed vowel
900 0 ▶ if(/$alteri(?:il)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$alteri(?:il)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) 0 0 0
Condition0%0/3
/$alteri(?:il)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$alteri(?:il)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
/$alteri(?:il)$/o not /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
Truth table0%0/3
A and not(B)
A= /$alteri(?:il)$/oB= not /(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o
ABresult
0X0
100
111
901 && !/(?:$vcirc|$consonant)(?:$alteri)(?:il)$/o) {
902 0 s/($alteri)(?=(?:il)$)/$alter{$1}/o;
903 }
904  
905 # restore original root consonant before -ā or consonant
906 0 ▶ if(/([syc])(?:āl|[mst]ul)$/
Branch: 1 branch
BranchTrueFalseTotal
if (/([syc])(?:\304\201l|[mst]ul)$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
/([syc])(?:\304\201l|[mst]ul)$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
/([syc])(?:\304\201l|[mst]ul)$/ and exists $rootchange{$1}{$verb}
/([syc])(?:\304\201l|[mst]ul)$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= /([syc])(?:\304\201l|[mst]ul)$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
907 && exists $rootchange{$1}{$verb})
908 {
909 0 s/([syc])(?=(?:āl|[mst]ul)$)/$rootchange{$1}{$verb}/;
910 }
911 }
912  
913 0 return $table;
914 },
915 0 ▶ 'past anterior' => sub {
Subroutine __ANON__: not called CC=7 SCAR=40.3
916 # normal passive perfect definite past anterior
917 0 my($verb) = @_;
918 0 my $stem = $verb;
919 0 my $table;
920  
921 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
922  
923 # Passive root of xuêsi is oxês- not oxuês-
924 0 ▶ $stem =~ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
925  
926 # Replace an initial vowel with o-, or add an o-
927 0 ▶ $stem =~ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || $stem =~ s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
$stem =~ s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or $stem =~ s/^/o/ 0 0 0
928  
929 # Delete the final vowel
930 0 $stem =~ s/(?:[eai]|ê|â|î)$//;
931  
932 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
933 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
934 0 s/($altere)(?=$)/$alter{$1}/o;
935 }
936  
937 0 $table = [ map "$stem$_", qw( eril eril erāl ermul erzul erdul ) ];
938  
939 0 return $table;
940 },
941 0 ▶ future => sub {
Subroutine __ANON__: not called CC=7 SCAR=40.3
942 # normal passive perfect definite future
943 0 my($verb) = @_;
944 0 my $stem = $verb;
945 0 my $table;
946  
947 # Passive root of xuêsi is oxês- not oxuês-
948 0 ▶ $stem =~ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
949  
950 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
951  
952 # Replace an initial vowel with o-, or add an o-
953 0 ▶ $stem =~ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || $stem =~ s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
$stem =~ s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or $stem =~ s/^/o/ 0 0 0
954  
955 # Delete the final vowel
956 0 $stem =~ s/(?:[eai]|ê|â|î)$//;
957  
958 0 ▶ if($stem =~ /([syc])$/
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /([syc])$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
$stem =~ /([syc])$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /([syc])$/ and exists $rootchange{$1}{$verb}
$stem =~ /([syc])$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= $stem =~ /([syc])$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
959 && exists $rootchange{$1}{$verb})
960 {
961 0 $stem =~ s/([syc])(?=$)/$rootchange{$1}{$verb}/;
962 }
963  
964 0 $table = [ map "$stem$_", qw( alāl alēl alel almal alzal aldal ) ];
965  
966 0 return $table;
967 },
968 },
969 remote => {
970 0 ▶ present => sub {
Subroutine __ANON__: not called CC=7 SCAR=40.3
971 # normal passive perfect remote present
972 0 my($verb) = @_;
973 0 my $stem = $verb;
974 0 my $table;
975  
976 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
977  
978 # Passive root of xuêsi is oxês- not oxuês-
979 0 ▶ $stem =~ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
980  
981 # Replace an initial vowel with o-, or add an o-
982 0 ▶ $stem =~ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || $stem =~ s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
$stem =~ s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or $stem =~ s/^/o/ 0 0 0
983  
984 # Delete the final vowel
985 0 $stem =~ s/(?:[eai]|ê|â|î)$//;
986  
987 0 ▶ if($stem =~ /$alteri$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o
$stem =~ /$alteri$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o
ABresult
0X0
100
111
988 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)$/o) {
989 0 s/($alteri)(?=$)/$alter{$1}/o;
990 }
991  
992 0 $table = [ map "$stem$_", qw( ināl inēl inel imal izal idal ) ];
993  
994 0 return $table;
995 },
996 0 ▶ past => sub {
Subroutine __ANON__: not called CC=7 SCAR=40.3
997 # normal passive perfect remote past
998 0 my($verb) = @_;
999 0 my $stem = $verb;
1000 0 my $table;
1001  
1002 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1003  
1004 # Passive root of xuêsi is oxês- not oxuês-
1005 0 ▶ $stem =~ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
1006  
1007 # Replace an initial vowel with o-, or add an o-
1008 0 ▶ $stem =~ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || $stem =~ s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
$stem =~ s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or $stem =~ s/^/o/ 0 0 0
1009  
1010 # Delete the final vowel
1011 0 $stem =~ s/(?:[eai]|ê|â|î)$//;
1012  
1013 0 ▶ if($stem =~ /$alteri$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$alteri$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o) 0 0 0
Condition0%0/3
$stem =~ /$alteri$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$alteri$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o
$stem =~ /$alteri$/o not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$alteri$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$alteri)$/o
ABresult
0X0
100
111
1014 && $stem !~ /(?:$vcirc|$consonant)(?:$alteri)$/o) {
1015 0 s/($alteri)(?=$)/$alter{$1}/o;
1016 }
1017  
1018 0 $table = [ map "$stem$_", qw( inil inil ināl imul izul idul ) ];
1019  
1020 0 return $table;
1021 },
1022 0 ▶ 'past anterior' => sub {
Subroutine __ANON__: not called CC=7 SCAR=40.3
1023 # normal passive perfect remote past anterior
1024 0 my($verb) = @_;
1025 0 my $stem = $verb;
1026 0 my $table;
1027  
1028 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1029  
1030 # Passive root of xuêsi is oxês- not oxuês-
1031 0 ▶ $stem =~ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
1032  
1033 # Replace an initial vowel with o-, or add an o-
1034 0 ▶ $stem =~ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || $stem =~ s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
$stem =~ s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or $stem =~ s/^/o/ 0 0 0
1035  
1036 # Delete the final vowel
1037 0 $stem =~ s/(?:[eai]|ê|â|î)$//;
1038  
1039 0 ▶ if($stem =~ /$altere$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
$stem =~ /$altere$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)$/o
ABresult
0X0
100
111
1040 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)$/o) {
1041 0 s/($altere)(?=$)/$alter{$1}/o;
1042 }
1043  
1044 0 $table = [ map "$stem$_", qw( erinil erinil erināl erimul erizul eridul ) ];
1045  
1046 0 return $table;
1047 },
1048 0 ▶ future => sub {
Subroutine __ANON__: not called CC=7 SCAR=40.3
1049 # normal passive perfect remote future
1050 0 my($verb) = @_;
1051 0 my $stem = $verb;
1052 0 my $table;
1053  
1054 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1055  
1056 # Passive root of xuêsi is oxês- not oxuês-
1057 0 ▶ $stem =~ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
1058  
1059 # Replace an initial vowel with o-, or add an o-
1060 0 ▶ $stem =~ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || $stem =~ s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
$stem =~ s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or $stem =~ s/^/o/ 0 0 0
1061  
1062 # Delete the final vowel
1063 0 $stem =~ s/(?:[eai]|ê|â|î)$//;
1064  
1065 0 ▶ if($stem =~ /([syc])$/
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /([syc])$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
$stem =~ /([syc])$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /([syc])$/ and exists $rootchange{$1}{$verb}
$stem =~ /([syc])$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= $stem =~ /([syc])$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
1066 && exists $rootchange{$1}{$verb})
1067 {
1068 0 $stem =~ s/([syc])(?=$)/$rootchange{$1}{$verb}/;
1069 }
1070  
1071 0 $table = [ map "$stem$_", qw( alināl alinēl alinel alimal alizal alidal ) ];
1072  
1073 0 return $table;
1074 },
1075 },
1076 },
1077 imperfect => {
1078 definite => {
1079 present => \&passive_imperfect,
1080 past => \&passive_imperfect,
1081 'past anterior' => \&passive_imperfect,
1082 future => \&passive_imperfect,
1083 },
1084 remote => {
1085 present => \&passive_imperfect,
1086 past => \&passive_imperfect,
1087 'past anterior' => \&passive_imperfect,
1088 future => \&passive_imperfect,
1089 },
1090 },
1091 },
1092 },
1093 causative => {
1094 active => {
1095 perfect => {
1096 definite => {
1097 0 ▶ present => sub {
Subroutine __ANON__: not called CC=7 SCAR=40.3
1098 # causative active perfect definite present
1099 0 my($verb) = @_;
1100 0 my $stem = $verb;
1101 0 my $table;
1102  
1103 0 ▶ ($verb, $stem) = ('ezâ', 'ezâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1104  
1105 # Delete the final vowel
1106 0 $stem =~ s/(?:[eai]|ê|â|î|û)$//;
1107  
1108 0 $table = [ map "$stem$_", qw( ū ū u īmo īzi īzu ) ];
1109  
1110 0 for(@$table) {
1111 # change root consonant before -i
1112 # except when preceded by another consonant or a circumflexed vowel
1113 0 ▶ if(/$alteri(?:ī(?:mo|z[iu]))$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$alteri(?:\304\253(?:mo|z[iu]))$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:\304\253(?:mo|z[iu]))$/o) 0 0 0
Condition0%0/3
/$alteri(?:\304\253(?:mo|z[iu]))$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:\304\253(?:mo|z[iu]))$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$alteri(?:\304\253(?:mo|z[iu]))$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:\304\253(?:mo|z[iu]))$/o
/$alteri(?:\304\253(?:mo|z[iu]))$/o not /(?:$vcirc|$consonant)(?:$alteri)(?:\304\253(?:mo|z[iu]))$/o
Truth table0%0/3
A and not(B)
A= /$alteri(?:\304\253(?:mo|z[iu]))$/oB= not /(?:$vcirc|$consonant)(?:$alteri)(?:\304\253(?:mo|z[iu]))$/o
ABresult
0X0
100
111
1114 && !/(?:$vcirc|$consonant)(?:$alteri)(?:ī(?:mo|z[iu]))$/o) {
1115 0 s/($alteri)(?=(?:ī(?:mo|z[iu]))$)/$alter{$1}/o;
1116 }
1117  
1118 # restore original root consonant before -u
1119 0 ▶ if(/([syc])(?:ū|u)$/
Branch: 1 branch
BranchTrueFalseTotal
if (/([syc])(?:\305\253|u)$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
/([syc])(?:\305\253|u)$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
/([syc])(?:\305\253|u)$/ and exists $rootchange{$1}{$verb}
/([syc])(?:\305\253|u)$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= /([syc])(?:\305\253|u)$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
1120 && exists $rootchange{$1}{$verb})
1121 {
1122 0 s/([syc])(?=(?:ū|u)$)/$rootchange{$1}{$verb}/;
1123 }
1124 }
1125  
1126 0 return $table;
1127 },
1128 0 ▶ past => sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
1129 # causative active perfect definite past
1130 0 my($verb) = @_;
1131 0 my $stem = $verb;
1132 0 my $table;
1133  
1134 0 ▶ ($verb, $stem) = ('ezâ', 'ezâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1135  
1136 # Delete the final vowel
1137 0 $stem =~ s/(?:[eai]|ê|â|î|û)$/eb/;
1138  
1139 0 ▶ if($stem =~ /$altere(?:eb)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:eb)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eb)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:eb)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eb)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:eb)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eb)$/o
$stem =~ /$altere(?:eb)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eb)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:eb)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eb)$/o
ABresult
0X0
100
111
1140 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:eb)$/o) {
1141 0 $stem =~ s/($altere)(?=eb$)/$alter{$1}/o;
1142 }
1143  
1144 0 $table = [ map "$stem$_", qw( ū ū u īmo īzi īzu ) ];
1145  
1146 0 return $table;
1147 },
1148 0 ▶ 'past anterior' => sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
1149 # causative active perfect definite past anterior
1150 0 my($verb) = @_;
1151 0 my $stem = $verb;
1152 0 my $table;
1153  
1154 0 ▶ ($verb, $stem) = ('ezâ', 'ezâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1155  
1156 # Delete the final vowel
1157 0 $stem =~ s/(?:[eai]|ê|â|î|û)$/er/;
1158  
1159 0 ▶ if($stem =~ /$altere(?:er)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:er)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
$stem =~ /$altere(?:er)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:er)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o
ABresult
0X0
100
111
1160 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:er)$/o) {
1161 0 $stem =~ s/($altere)(?=er$)/$alter{$1}/o;
1162 }
1163  
1164 0 $table = [ map "$stem$_", qw( ū ū u īmo īzi īzu ) ];
1165  
1166 0 return $table;
1167 },
1168 0 ▶ future => sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
1169 # causative active perfect definite future
1170 0 my($verb) = @_;
1171 0 my $stem = $verb;
1172 0 my $table;
1173  
1174 0 ▶ ($verb, $stem) = ('ezâ', 'ezâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1175  
1176 # Delete the final vowel
1177 0 $stem =~ s/(?:[eai]|ê|â|î|û)$/al/;
1178  
1179 0 ▶ if($stem =~ /([syc])(?:al)$/
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /([syc])(?:al)$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
$stem =~ /([syc])(?:al)$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /([syc])(?:al)$/ and exists $rootchange{$1}{$verb}
$stem =~ /([syc])(?:al)$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= $stem =~ /([syc])(?:al)$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
1180 && exists $rootchange{$1}{$verb})
1181 {
1182 0 $stem =~ s/([syc])(?=(?:al)$)/$rootchange{$1}{$verb}/;
1183 }
1184  
1185 0 $table = [ map "$stem$_", qw( ū ū u īmo īzi īzu ) ];
1186  
1187 0 return $table;
1188 },
1189 },
1190 remote => {
1191 0 ▶ present => sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
1192 # causative active perfect remote present
1193 0 my($verb) = @_;
1194 0 my $stem = $verb;
1195 0 my $table;
1196  
1197 0 ▶ ($verb, $stem) = ('ezâ', 'ezâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1198  
1199 # Delete the final vowel
1200 0 $stem =~ s/(?:[eai]|ê|â|î|û)$/et/;
1201  
1202 0 ▶ if($stem =~ /$altere(?:et)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:et)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:et)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:et)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:et)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:et)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:et)$/o
$stem =~ /$altere(?:et)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:et)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:et)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:et)$/o
ABresult
0X0
100
111
1203 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:et)$/o) {
1204 0 $stem =~ s/($altere)(?=et$)/$alter{$1}/o;
1205 }
1206  
1207 0 $table = [ map "$stem$_", qw( ū ū u īmo īzi īzu ) ];
1208  
1209 0 return $table;
1210 },
1211 0 ▶ past => sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
1212 # causative active perfect remote past
1213 0 my($verb) = @_;
1214 0 my $stem = $verb;
1215 0 my $table;
1216  
1217 0 ▶ ($verb, $stem) = ('ezâ', 'ezâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1218  
1219 # Delete the final vowel
1220 0 $stem =~ s/(?:[eai]|ê|â|î|û)$/eseb/;
1221  
1222 0 ▶ if($stem =~ /$altere(?:eseb)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:eseb)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eseb)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:eseb)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eseb)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:eseb)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eseb)$/o
$stem =~ /$altere(?:eseb)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eseb)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:eseb)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eseb)$/o
ABresult
0X0
100
111
1223 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:eseb)$/o) {
1224 0 $stem =~ s/($altere)(?=eseb$)/$alter{$1}/o;
1225 }
1226  
1227 0 $table = [ map "$stem$_", qw( ū ū u īmo īzi īzu ) ];
1228  
1229 0 return $table;
1230 },
1231 0 ▶ 'past anterior' => sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
1232 # causative active perfect remote past anterior
1233 0 my($verb) = @_;
1234 0 my $stem = $verb;
1235 0 my $table;
1236  
1237 0 ▶ ($verb, $stem) = ('ezâ', 'ezâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1238  
1239 # Delete the final vowel
1240 0 $stem =~ s/(?:[eai]|ê|â|î|û)$/eser/;
1241  
1242 0 ▶ if($stem =~ /$altere(?:eser)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:eser)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eser)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:eser)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eser)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:eser)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eser)$/o
$stem =~ /$altere(?:eser)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eser)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:eser)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:eser)$/o
ABresult
0X0
100
111
1243 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:eser)$/o) {
1244 0 $stem =~ s/($altere)(?=eser$)/$alter{$1}/o;
1245 }
1246  
1247 0 $table = [ map "$stem$_", qw( ū ū u īmo īzi īzu ) ];
1248  
1249 0 return $table;
1250 },
1251 0 ▶ future => sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
1252 # causative active perfect remote future
1253 0 my($verb) = @_;
1254 0 my $stem = $verb;
1255 0 my $table;
1256  
1257 0 ▶ ($verb, $stem) = ('ezâ', 'ezâ') if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1258  
1259 # Delete the final vowel
1260 0 $stem =~ s/(?:[eai]|ê|â|î|û)$/etal/;
1261  
1262 0 ▶ if($stem =~ /$altere(?:etal)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$altere(?:etal)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:etal)$/o) 0 0 0
Condition0%0/3
$stem =~ /$altere(?:etal)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:etal)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$stem =~ /$altere(?:etal)$/o and not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:etal)$/o
$stem =~ /$altere(?:etal)$/o not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:etal)$/o
Truth table0%0/3
A and not(B)
A= $stem =~ /$altere(?:etal)$/oB= not $stem =~ /(?:$vcirc|$consonant)(?:$altere)(?:etal)$/o
ABresult
0X0
100
111
1263 && $stem !~ /(?:$vcirc|$consonant)(?:$altere)(?:etal)$/o) {
1264 0 $stem =~ s/($altere)(?=etal$)/$alter{$1}/o;
1265 }
1266  
1267 0 $table = [ map "$stem$_", qw( ū ū u īmo īzi īzu ) ];
1268  
1269 0 return $table;
1270 },
1271 },
1272 },
1273 7 imperfect => {
1274 definite => {
1275 present => \&causative_imperfect,
1276 past => \&causative_imperfect,
1277 'past anterior' => \&causative_imperfect,
1278 future => \&causative_imperfect,
1279 },
1280 remote => {
1281 present => \&causative_imperfect,
1282 past => \&causative_imperfect,
1283 'past anterior' => \&causative_imperfect,
1284 future => \&causative_imperfect,
1285 },
1286 },
1287 },
1288 passive => {
1289 perfect => {
1290 definite => {
1291 present => \&causative_passive_perfect,
1292 past => \&causative_passive_perfect,
1293 'past anterior' => \&causative_passive_perfect,
1294 future => \&causative_passive_perfect,
1295 },
1296 remote => {
1297 present => \&causative_passive_perfect,
1298 past => \&causative_passive_perfect,
1299 'past anterior' => \&causative_passive_perfect,
1300 future => \&causative_passive_perfect,
1301 },
1302 },
1303 imperfect => {
1304 definite => {
1305 present => \&causative_imperfect,
1306 past => \&causative_imperfect,
1307 'past anterior' => \&causative_imperfect,
1308 future => \&causative_imperfect,
1309 },
1310 remote => {
1311 present => \&causative_imperfect,
1312 past => \&causative_imperfect,
1313 'past anterior' => \&causative_imperfect,
1314 future => \&causative_imperfect,
1315 },
1316 },
1317 },
1318 },
1319 inceptive => {
1320 active => {
1321 perfect => {
1322 definite => {
1323 present => \&inceptive,
1324 past => \&inceptive,
1325 'past anterior' => \&inceptive,
1326 future => \&inceptive,
1327 },
1328 remote => {
1329 present => \&inceptive,
1330 past => \&inceptive,
1331 'past anterior' => \&inceptive,
1332 future => \&inceptive,
1333 },
1334 },
1335 imperfect => {
1336 definite => {
1337 present => \&inceptive,
1338 past => \&inceptive,
1339 'past anterior' => \&inceptive,
1340 future => \&inceptive,
1341 },
1342 remote => {
1343 present => \&inceptive,
1344 past => \&inceptive,
1345 'past anterior' => \&inceptive,
1346 future => \&inceptive,
1347 },
1348 },
1349 },
1350 passive => {
1351 perfect => {
1352 definite => {
1353 present => \&inceptive,
1354 past => \&inceptive,
1355 'past anterior' => \&inceptive,
1356 future => \&inceptive,
1357 },
1358 remote => {
1359 present => \&inceptive,
1360 past => \&inceptive,
1361 'past anterior' => \&inceptive,
1362 future => \&inceptive,
1363 },
1364 },
1365 imperfect => {
1366 definite => {
1367 present => \&inceptive,
1368 past => \&inceptive,
1369 'past anterior' => \&inceptive,
1370 future => \&inceptive,
1371 },
1372 remote => {
1373 present => \&inceptive,
1374 past => \&inceptive,
1375 'past anterior' => \&inceptive,
1376 future => \&inceptive,
1377 },
1378 },
1379 },
1380 },
1381 );
1382  
1383  
1384 0 ▶sub imperfect {
Subroutine imperfect: not called CC=8 SCAR=42.8
Pod undocumented
1385 # normal active imperfect
1386 0 my($verb, $conj, $info) = @_;
1387 0 my $orig = $verb;
1388 0 my $table;
1389  
1390 0 ▶ if($verb eq 'esc'
Branch: 1 branch
BranchTrueFalseTotal
if ($verb eq "esc") 0 0 0
1391 # && $info->{type} eq 'normal'
1392 # && $info->{voice} eq 'active'
1393 # && $info->{mood} eq 'definite'
1394 ) {
1395 # if($info->{tense} eq 'present') {
1396 # return [ qw( fuāi fuēi fuē fuāmo fuāzu fuota ) ];
1397 # } elsif($info->{tense} eq 'past') {
1398 # # īmo īzi are misconversions, according to Mark
1399 # return [ qw( fuio fuio fuā fuōmo fuōzi fuītu ) ];
1400 # }
1401 0 ($conj, $verb) = (2, 'fuâ');
1402 }
1403  
1404 # form the normal active perfect tense
1405 $table = $verb{$info->{type}}
1406 -> {$info->{voice}}
1407 -> {perfect}
1408 -> {$info->{mood}}
1409 -> {$info->{tense}}
1410 0 -> ($verb, $conj, { %$info, aspect => 'perfect' });
1411  
1412 0 ▶ return unless defined $table;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $table 0 0 0
1413  
1414 # imperfect of 'esc' looks like the perfect of 'fuâ'
1415 # so don't make any changes from here on
1416 0 ▶ return $table if $orig eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $orig eq "esc" 0 0 0
1417  
1418 # change -mo to -bo in I.pl., except for present and
1419 # past definite
1420 $table->[3] =~ s/mo$/bo/
1421 unless $info->{mood} eq 'definite'
1422 && ( $info->{tense} eq 'present'
1423 0 ▶ || $info->{tense} eq 'past');
Branch: 1 branch
BranchTrueFalseTotal
unless $info->{"mood"} eq "definite" and $info->{"tense"} eq "present" || $info->{"tense"} eq "past" 0 0 0
Condition0%0/6
$info->{"mood"} eq "definite" and $info->{"tense"} eq "present" || $info->{"tense"} eq "past"
!ll&&!rl&&r
000
$info->{"tense"} eq "present" or $info->{"tense"} eq "past"
l!l&&r!l&&!r
000
MC/DC0%0/3
$info->{"mood"} eq "definite" and $info->{"tense"} eq "present" || $info->{"tense"} eq "past"
$info->{"mood"} eq "definite" $info->{"tense"} eq "present" $info->{"tense"} eq "past"
Truth table0%0/4
A and B or C
A= $info->{"mood"} eq "definite"B= $info->{"tense"} eq "present"C= $info->{"tense"} eq "past"
ABCresult
0XX0
1000
11X1
1011
1424  
1425 # add a final -r -r -re -r -r -r
1426 0 for(@$table) {
1427 0 $_ .= 'r';
1428 }
1429 0 $table->[2] .= 'e';
1430  
1431 0 return $table;
1432 };
1433  
1434 0 ▶sub passive_imperfect {
Subroutine passive_imperfect: not called CC=4 SCAR=30.0
Pod undocumented
1435 # normal passive imperfect
1436 0 my($verb, $conj, $info) = @_;
1437 0 my $table;
1438  
1439 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1440  
1441 # form the normal passive perfect tense
1442 $table = $verb{$info->{type}}
1443 -> {$info->{voice}}
1444 -> {perfect}
1445 -> {$info->{mood}}
1446 -> {$info->{tense}}
1447 0 -> ($verb, $conj, { %$info, aspect => 'perfect' });
1448  
1449 0 ▶ return unless defined $table;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $table 0 0 0
1450  
1451 # Change the final -l to -r
1452 0 for(@$table) {
1453 0 s/l$/r/;
1454 }
1455 # Should III.sg. end in -r or -re?
1456 # $table->[2] .= 'e';
1457 # Mark says it shouldn't.
1458  
1459 0 return $table;
1460 };
1461  
1462 0 ▶sub causative_imperfect {
Subroutine causative_imperfect: not called CC=6 SCAR=37.4
Pod undocumented
1463 # causative (active or passive) imperfect
1464 0 my($verb, $conj, $info) = @_;
1465 0 my $table;
1466  
1467 # form the causative perfect tense
1468 $table = $verb{$info->{type}}
1469 -> {$info->{voice}}
1470 -> {perfect}
1471 -> {$info->{mood}}
1472 -> {$info->{tense}}
1473 0 -> ($verb, $conj, { %$info, aspect => 'perfect' });
1474  
1475 0 ▶ return unless defined $table;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $table 0 0 0
1476  
1477 # Add final -r/-re (for active) or change final -l to -r (for passive)
1478 0 ▶ if($info->{voice} eq 'active') {
Branch: 2 branches
BranchTrueFalseTotal
if ($info->{'voice'} eq 'active') { } 0 0 0
elsif ($info->{'voice'} eq 'passive') { } 0 0 0
1479 0 for(@$table) {
1480 0 $_ .= 'r';
1481 }
1482 0 $table->[2] .= 'e';
1483 } elsif($info->{voice} eq 'passive') {
1484 0 for(@$table) {
1485 0 s/l$/r/;
1486 }
1487 } else {
1488 0 return;
1489 }
1490  
1491 0 return $table;
1492 };
1493  
1494 0 ▶sub causative_passive_perfect {
Subroutine causative_passive_perfect: not called CC=6 SCAR=37.4
Pod undocumented
1495 # causative passive perfect
1496 0 my($verb, $conj, $info) = @_;
1497 0 my $table;
1498  
1499 0 ▶ return if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1500  
1501 # form the causative active perfect tense
1502 $table = $verb{$info->{type}}
1503 -> {active}
1504 -> {$info->{aspect}}
1505 -> {$info->{mood}}
1506 -> {$info->{tense}}
1507 0 -> ($verb, $conj, { %$info, voice => 'active' });
1508  
1509 0 ▶ return unless defined $table;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $table 0 0 0
1510  
1511 # Replace an initial vowel with o-, or add an o-
1512 # Suffix an -l
1513 0 for(@$table) {
1514 0 ▶ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or s/^/o/ 0 0 0
1515 0 s/$/l/;
1516  
1517 # Passive root of xuêsi is oxês- not oxuês-
1518 0 ▶ s/xuês/xês/ if $verb eq 'xuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" 0 0 0
1519 }
1520  
1521 0 return $table;
1522 }
1523  
1524 0 ▶sub inceptive {
Subroutine inceptive: not called CC=17 SCAR=57.2
Pod undocumented
1525 # inceptive (active or passive) (perfect or imperfect)
1526 0 my($verb, $conj, $info) = @_;
1527 0 my $table;
1528  
1529 0 ▶ if($verb eq 'esc') {
Branch: 1 branch
BranchTrueFalseTotal
if ($verb eq "esc") 0 0 0
1530 # form the normal tense
1531 $table = $verb{normal}
1532 -> {$info->{voice}}
1533 -> {$info->{aspect}}
1534 -> {$info->{mood}}
1535 -> {$info->{tense}}
1536 0 -> ($verb, $conj, { %$info, type => 'normal' });
1537  
1538 # and add 'ba'
1539 0 for(@$table) {
1540 0 s/^/ba/;
1541 }
1542  
1543 0 return $table;
1544 }
1545  
1546 0 ▶ if($info->{aspect} eq 'perfect') {
Branch: 2 branches
BranchTrueFalseTotal
if ($info->{'aspect'} eq 'perfect') { } 0 0 0
elsif ($info->{'aspect'} eq 'imperfect') { } 0 0 0
1547 # Add 'ba' or change 'o-' to 'oba-'
1548 0 ▶ if($verb eq 'ogonî' ||
Branch: 1 branch
BranchTrueFalseTotal
if ($verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256") { } 0 0 0
Condition0%0/6
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256"
l!l&&r!l&&!r
000
$verb eq "ogon\303\256" or $verb eq "om\303\256"
l!l&&r!l&&!r
000
MC/DC0%0/3
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256"
$verb eq "ogon\303\256" $verb eq "om\303\256" $verb eq "on\303\256"
Truth table0%0/4
A or B or C
A= $verb eq "ogon\303\256"B= $verb eq "om\303\256"C= $verb eq "on\303\256"
ABCresult
1XX1
01X1
0011
0000
1549 $verb eq 'omî' ||
1550 $verb eq 'onî') {
1551 0 substr($verb, 1, 0) = 'ba';
1552 } else {
1553 0 substr($verb, 0, 0) = 'ba';
1554 }
1555  
1556 # form the normal tense
1557 $table = $verb{normal}
1558 -> {$info->{voice}}
1559 -> {$info->{aspect}}
1560 -> {$info->{mood}}
1561 -> {$info->{tense}}
1562 0 -> ($verb, $conj, { %$info, type => 'normal' });
1563 } elsif($info->{aspect} eq 'imperfect') {
1564 # form the perfect form
1565 # (this will result in a recursive call to this function)
1566 $table = $verb{$info->{type}}
1567 -> {$info->{voice}}
1568 -> {perfect}
1569 -> {$info->{mood}}
1570 -> {$info->{tense}}
1571 0 -> ($verb, $conj, { %$info, aspect => 'perfect' });
1572 } else {
1573 0 return;
1574 }
1575  
1576 0 ▶ return unless defined $table;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $table 0 0 0
1577  
1578 0 ▶ if($info->{aspect} eq 'perfect') {
Branch: 2 branches
BranchTrueFalseTotal
if ($info->{'aspect'} eq 'perfect') { } 0 0 0
elsif ($info->{'aspect'} eq 'imperfect') { } 0 0 0
1579 # Remove final vowel if there are two
1580 # (only active; perfect passive is exactly the same as normal)
1581 0 ▶ if($info->{voice} eq 'active') {
Branch: 1 branch
BranchTrueFalseTotal
if ($info->{"voice"} eq "active") 0 0 0
1582 0 for(@$table) {
1583 0 s/([aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)$/$1/;
1584 }
1585 }
1586 } elsif($info->{aspect} eq 'imperfect') {
1587 # Add final -r/-re (for active) or change final -l to -r (for passive)
1588 0 ▶ if($info->{voice} eq 'active') {
Branch: 2 branches
BranchTrueFalseTotal
if ($info->{'voice'} eq 'active') { } 0 0 0
elsif ($info->{'voice'} eq 'passive') { } 0 0 0
1589 0 for(@$table) {
1590 0 $_ .= 'r';
1591 }
1592 0 $table->[2] .= 'e';
1593 } elsif($info->{voice} eq 'passive') {
1594 0 for(@$table) {
1595 0 s/l$/r/;
1596 }
1597 } else {
1598 0 return;
1599 }
1600 } else {
1601 0 return;
1602 }
1603  
1604 0 return $table;
1605 };
1606  
1607  
1608 0 ▶sub inf {
Subroutine inf: not called CC=29 SCAR=67.7
Pod documented
1609 0 my $verb = shift;
1610 0 my($active, $passive, $causative, $inceptive, $incpass);
1611  
1612 # active infinitive is simply the base form,
1613 # except for passive-only and causative-only verbs
1614 0 ▶ $active = $verb unless $verb eq 'ogonî'
Branch: 1 branch
BranchTrueFalseTotal
unless $verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256" or $verb eq "\304\223xl\303\273rt\303\273" 0 0 0
Condition0%0/9
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256" or $verb eq "\304\223xl\303\273rt\303\273"
l!l&&r!l&&!r
000
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256"
l!l&&r!l&&!r
000
$verb eq "ogon\303\256" or $verb eq "om\303\256"
l!l&&r!l&&!r
000
MC/DC0%0/4
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256" or $verb eq "\304\223xl\303\273rt\303\273"
$verb eq "ogon\303\256" $verb eq "om\303\256" $verb eq "on\303\256" $verb eq "\304\223xl\303\273rt\303\273"
Truth table0%0/5
A or B or C or D
A= $verb eq "ogon\303\256"B= $verb eq "om\303\256"C= $verb eq "on\303\256"D= $verb eq "\304\223xl\303\273rt\303\273"
ABCDresult
1XXX1
01XX1
001X1
00011
00000
1615 || $verb eq 'omî'
1616 || $verb eq 'onî'
1617 || $verb eq 'ēxlûrtû'
1618 ;
1619  
1620 # passive infinitive is o- + root + -i (with long vowel) or -î (otherwise)
1621 # except for causative-only verbs
1622 0 ▶ if($verb ne 'ēxlûrtû') {
Branch: 1 branch
BranchTrueFalseTotal
if ($verb ne "\304\223xl\303\273rt\303\273") 0 0 0
1623 0 for($passive = $verb) {
1624 0 ▶ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or s/^/o/ 0 0 0
1625 0 s/(?:[eai]|ê|â)$/î/;
1626 0 ▶ s/î$/i/ if /(?:ā|ē|ī|ō|ū)/;
Branch: 1 branch
BranchTrueFalseTotal
if /(?:\304\201|\304\223|\304\253|\305\215|\305\253)/ 0 0 0
1627  
1628 0 ▶ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
1629 }
1630 }
1631  
1632 # causative infinitive is -û or -u, except esc --> ezû
1633 0 ▶ if($verb eq 'esc') {
Branch: 2 branches
BranchTrueFalseTotal
if ($verb eq 'esc') { } 0 0 0
elsif ($verb eq "\304\223xl\303\273rt\303\273") { } 0 0 0
1634 0 $causative = 'ezû';
1635 } elsif($verb eq 'ēxlûrtû') {
1636 0 $causative = $verb;
1637 } else {
1638 0 for($causative = $verb) {
1639 0 s/(?:[eai]|ê|â)$/û/;
1640 0 ▶ s/û$/u/ if /(?:ā|ē|ī|ō|ū)/;
Branch: 1 branch
BranchTrueFalseTotal
if /(?:\304\201|\304\223|\304\253|\305\215|\305\253)/ 0 0 0
1641 }
1642 }
1643  
1644 # inceptive active infinitive is ba- + normal infinitive,
1645 # except for passive-only and causative-only verbs, which have none
1646 0 ▶ if($verb ne 'ēxlûrtû'
Branch: 1 branch
BranchTrueFalseTotal
if ($verb ne "\304\223xl\303\273rt\303\273" and $verb ne "ogon\303\256" and $verb ne "om\303\256" and $verb ne "on\303\256") 0 0 0
Condition0%0/9
$verb ne "\304\223xl\303\273rt\303\273" and $verb ne "ogon\303\256" and $verb ne "om\303\256" and $verb ne "on\303\256"
!ll&&!rl&&r
000
$verb ne "\304\223xl\303\273rt\303\273" and $verb ne "ogon\303\256" and $verb ne "om\303\256"
!ll&&!rl&&r
000
$verb ne "\304\223xl\303\273rt\303\273" and $verb ne "ogon\303\256"
!ll&&!rl&&r
000
MC/DC0%0/4
$verb ne "\304\223xl\303\273rt\303\273" and $verb ne "ogon\303\256" and $verb ne "om\303\256" and $verb ne "on\303\256"
$verb ne "\304\223xl\303\273rt\303\273" $verb ne "ogon\303\256" $verb ne "om\303\256" $verb ne "on\303\256"
Truth table0%0/5
A and B and C and D
A= $verb ne "\304\223xl\303\273rt\303\273"B= $verb ne "ogon\303\256"C= $verb ne "om\303\256"D= $verb ne "on\303\256"
ABCDresult
0XXX0
10XX0
110X0
11100
11111
1647 && $verb ne 'ogonî'
1648 && $verb ne 'omî'
1649 && $verb ne 'onî'
1650 ) {
1651 0 for($inceptive = $verb) {
1652 0 s/^/ba/;
1653 }
1654 }
1655  
1656 # inceptive passive infinitive is oba- + normal infinitive + i^/i,
1657 # except for passive-only (oba-) and causative-only (none) verbs
1658 0 ▶ if($verb ne 'ēxlûrtû') {
Branch: 1 branch
BranchTrueFalseTotal
if ($verb ne "\304\223xl\303\273rt\303\273") 0 0 0
1659 0 for($incpass = $verb) {
1660 0 ▶ s/^ogonî$/obagonî/ ||
Branch: 1 branch
BranchTrueFalseTotal
s/^ogon\303\256$/obagon\303\256/ or s/^om\303\256$/obam\303\256/ or s/^on\303\256$/oban\303\256/ or s/^/oba/ 0 0 0
Condition0%0/6
s/^ogon\303\256$/obagon\303\256/ or s/^om\303\256$/obam\303\256/ or s/^on\303\256$/oban\303\256/
l!l&&r!l&&!r
000
s/^ogon\303\256$/obagon\303\256/ or s/^om\303\256$/obam\303\256/
l!l&&r!l&&!r
000
MC/DC0%0/3
s/^ogon\303\256$/obagon\303\256/ or s/^om\303\256$/obam\303\256/ or s/^on\303\256$/oban\303\256/
s/^ogon\303\256$/obagon\303\256/ s/^om\303\256$/obam\303\256/ s/^on\303\256$/oban\303\256/
Truth table0%0/4
A or B or C
A= s/^ogon\303\256$/obagon\303\256/B= s/^om\303\256$/obam\303\256/C= s/^on\303\256$/oban\303\256/
ABCresult
1XX1
01X1
0011
0000
1661 s/^omî$/obamî/ ||
1662 s/^onî$/obanî/ ||
1663 s/^/oba/;
1664 0 s/(?:[eai]|ê|â)$/î/;
1665 0 ▶ s/î$/i/ if /(?:ā|ē|ī|ō|ū)/;
Branch: 1 branch
BranchTrueFalseTotal
if /(?:\304\201|\304\223|\304\253|\305\215|\305\253)/ 0 0 0
1666  
1667 0 ▶ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
1668 }
1669 }
1670  
1671 0 ▶ return wantarray ? ($active, $passive, $causative, $inceptive, $incpass)
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 0 0
1672 : {
1673 active => $active,
1674 passive => $passive,
1675 causative => $causative,
1676 inceptive => $inceptive,
1677 incpass => $incpass,
1678 };
1679 }
1680  
1681  
1682 0 ▶sub part {
Subroutine part: not called CC=43 SCAR=75.5
Pod documented
1683 0 my $verb = shift;
1684  
1685 0 my($active, $passive, $agent, $causative) = ($verb) x 4;
1686  
1687 # esc forms its participles from the root ez-,
1688 # and it's nominally 2nd declension in -â.
1689 0 ▶ ($active, $passive, $agent, $causative) = ('ezâ') x 4 if $verb eq 'esc';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "esc" 0 0 0
1690  
1691 0 ▶ if($verb eq 'ogonî' ||
Branch: 1 branch
BranchTrueFalseTotal
if ($verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256" or $verb eq "\304\223xl\303\273rt\303\273") { } 0 0 0
Condition0%0/9
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256" or $verb eq "\304\223xl\303\273rt\303\273"
l!l&&r!l&&!r
000
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256"
l!l&&r!l&&!r
000
$verb eq "ogon\303\256" or $verb eq "om\303\256"
l!l&&r!l&&!r
000
MC/DC0%0/4
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256" or $verb eq "\304\223xl\303\273rt\303\273"
$verb eq "ogon\303\256" $verb eq "om\303\256" $verb eq "on\303\256" $verb eq "\304\223xl\303\273rt\303\273"
Truth table0%0/5
A or B or C or D
A= $verb eq "ogon\303\256"B= $verb eq "om\303\256"C= $verb eq "on\303\256"D= $verb eq "\304\223xl\303\273rt\303\273"
ABCDresult
1XXX1
01XX1
001X1
00011
00000
1692 $verb eq 'omî' ||
1693 $verb eq 'onî' ||
1694 $verb eq 'ēxlûrtû'
1695 ) {
1696 0 $active = undef;
1697 } else {
1698 # active is e- + root + -eto
1699 # e- changes to am- before b
1700 # ee- and eê- both go to ē-
1701 0 for($active) {
1702 0 ▶ s/^b/amb/ || s/^e/ē/ || s/^ê/ē/ || s/^/e/;
Branch: 1 branch
BranchTrueFalseTotal
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/ or s/^/e/ 0 0 0
Condition0%0/6
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/
l!l&&r!l&&!r
000
s/^b/amb/ or s/^e/\304\223/
l!l&&r!l&&!r
000
MC/DC0%0/3
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/
s/^b/amb/ s/^e/\304\223/ s/^\303\252/\304\223/
Truth table0%0/4
A or B or C
A= s/^b/amb/B= s/^e/\304\223/C= s/^\303\252/\304\223/
ABCresult
1XX1
01X1
0011
0000
1703 0 s/(?:[eai]|ê|â)$/eto/;
1704 0 ▶ if(/$altere(?:eto)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$altere(?:eto)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:eto)$/o) 0 0 0
Condition0%0/3
/$altere(?:eto)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:eto)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$altere(?:eto)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:eto)$/o
/$altere(?:eto)$/o not /(?:$vcirc|$consonant)(?:$altere)(?:eto)$/o
Truth table0%0/3
A and not(B)
A= /$altere(?:eto)$/oB= not /(?:$vcirc|$consonant)(?:$altere)(?:eto)$/o
ABresult
0X0
100
111
1705 && !/(?:$vcirc|$consonant)(?:$altere)(?:eto)$/o) {
1706 0 s/($altere)(?=(?:eto)$)/$alter{$1}/o;
1707 }
1708 }
1709 }
1710  
1711 # passive is o- + root + -elo
1712 # The o- replaces any initial vowel
1713 # o- changes to om- before b
1714 0 ▶ if($verb eq 'ēxlûrtû' ||
Branch: 1 branch
BranchTrueFalseTotal
if ($verb eq "\304\223xl\303\273rt\303\273" or $verb eq 'esc') { } 0 0 0
Condition0%0/3
$verb eq "\304\223xl\303\273rt\303\273" or $verb eq "esc"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "\304\223xl\303\273rt\303\273" or $verb eq "esc"
$verb eq "\304\223xl\303\273rt\303\273" $verb eq "esc"
Truth table0%0/3
A or B
A= $verb eq "\304\223xl\303\273rt\303\273"B= $verb eq "esc"
ABresult
1X1
011
000
1715 $verb eq 'esc') {
1716 0 $passive = undef;
1717 } else {
1718 0 for($passive) {
1719 0 ▶ s/^(?:[aeiou]|ā|ē|ī|ō|ū|â|ê|î|ô|û)/o/ || s/^/o/;
Branch: 1 branch
BranchTrueFalseTotal
s/^(?:[aeiou]|\304\201|\304\223|\304\253|\305\215|\305\253|\303\242|\303\252|\303\256|\303\264|\303\273)/o/ or s/^/o/ 0 0 0
1720 0 s/^ob/omb/;
1721 0 s/(?:[eai]|ê|â|î)$/elo/;
1722 0 ▶ if(/$altere(?:elo)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$altere(?:elo)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:elo)$/o) 0 0 0
Condition0%0/3
/$altere(?:elo)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:elo)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$altere(?:elo)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:elo)$/o
/$altere(?:elo)$/o not /(?:$vcirc|$consonant)(?:$altere)(?:elo)$/o
Truth table0%0/3
A and not(B)
A= /$altere(?:elo)$/oB= not /(?:$vcirc|$consonant)(?:$altere)(?:elo)$/o
ABresult
0X0
100
111
1723 && !/(?:$vcirc|$consonant)(?:$altere)(?:elo)$/o) {
1724 0 s/($altere)(?=(?:elo)$)/$alter{$1}/o;
1725 }
1726  
1727 0 ▶ s/xuês/xês/ if $verb eq 'xuêsi' || $verb eq 'baxuêsi';
Branch: 1 branch
BranchTrueFalseTotal
if $verb eq "xu\303\252si" or $verb eq "baxu\303\252si" 0 0 0
Condition0%0/3
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
l!l&&r!l&&!r
000
MC/DC0%0/2
$verb eq "xu\303\252si" or $verb eq "baxu\303\252si"
$verb eq "xu\303\252si" $verb eq "baxu\303\252si"
Truth table0%0/3
A or B
A= $verb eq "xu\303\252si"B= $verb eq "baxu\303\252si"
ABresult
1X1
011
000
1728 }
1729 }
1730  
1731 0 ▶ if($verb eq 'ogonî' ||
Branch: 1 branch
BranchTrueFalseTotal
if ($verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256" or $verb eq "\304\223xl\303\273rt\303\273") { } 0 0 0
Condition0%0/9
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256" or $verb eq "\304\223xl\303\273rt\303\273"
l!l&&r!l&&!r
000
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256"
l!l&&r!l&&!r
000
$verb eq "ogon\303\256" or $verb eq "om\303\256"
l!l&&r!l&&!r
000
MC/DC0%0/4
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256" or $verb eq "\304\223xl\303\273rt\303\273"
$verb eq "ogon\303\256" $verb eq "om\303\256" $verb eq "on\303\256" $verb eq "\304\223xl\303\273rt\303\273"
Truth table0%0/5
A or B or C or D
A= $verb eq "ogon\303\256"B= $verb eq "om\303\256"C= $verb eq "on\303\256"D= $verb eq "\304\223xl\303\273rt\303\273"
ABCDresult
1XXX1
01XX1
001X1
00011
00000
1732 $verb eq 'omî' ||
1733 $verb eq 'onî' ||
1734 $verb eq 'ēxlûrtû'
1735 ) {
1736 0 $agent = undef;
1737 } else {
1738 # agent is e- + root + -as/-ei
1739 # e- changes to am- before b
1740 # ee- and eê- both go to ē-
1741 0 for($agent) {
1742 0 ▶ s/^b/amb/ || s/^e/ē/ || s/^ê/ē/ || s/^/e/;
Branch: 1 branch
BranchTrueFalseTotal
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/ or s/^/e/ 0 0 0
Condition0%0/6
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/
l!l&&r!l&&!r
000
s/^b/amb/ or s/^e/\304\223/
l!l&&r!l&&!r
000
MC/DC0%0/3
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/
s/^b/amb/ s/^e/\304\223/ s/^\303\252/\304\223/
Truth table0%0/4
A or B or C
A= s/^b/amb/B= s/^e/\304\223/C= s/^\303\252/\304\223/
ABCresult
1XX1
01X1
0011
0000
1743 0 s/(?:[eai]|ê|â)$//;
1744 }
1745 # TODO - keep track of root alternations
1746 # e.g. pīsi --> epī*t*as, epīsei
1747 0 $agent = [ $agent . 'as', $agent . 'ei' ];
1748  
1749 0 ▶ if($agent->[0] =~ /([syc])(?:as)$/
Branch: 1 branch
BranchTrueFalseTotal
if ($agent->[0] =~ /([syc])(?:as)$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
$agent->[0] =~ /([syc])(?:as)$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
$agent->[0] =~ /([syc])(?:as)$/ and exists $rootchange{$1}{$verb}
$agent->[0] =~ /([syc])(?:as)$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= $agent->[0] =~ /([syc])(?:as)$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
1750 && exists $rootchange{$1}{$verb})
1751 {
1752 0 $agent->[0] =~ s/([syc])(?=(?:as)$)/$rootchange{$1}{$verb}/;
1753 }
1754  
1755 0 ▶ if($agent->[1] =~ /$altere(?:ei)$/o
Branch: 1 branch
BranchTrueFalseTotal
if ($agent->[1] =~ /$altere(?:ei)$/o and not $agent->[1] =~ /(?:$vcirc|$consonant)(?:$altere)(?:ei)$/o) 0 0 0
Condition0%0/3
$agent->[1] =~ /$altere(?:ei)$/o and not $agent->[1] =~ /(?:$vcirc|$consonant)(?:$altere)(?:ei)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
$agent->[1] =~ /$altere(?:ei)$/o and not $agent->[1] =~ /(?:$vcirc|$consonant)(?:$altere)(?:ei)$/o
$agent->[1] =~ /$altere(?:ei)$/o not $agent->[1] =~ /(?:$vcirc|$consonant)(?:$altere)(?:ei)$/o
Truth table0%0/3
A and not(B)
A= $agent->[1] =~ /$altere(?:ei)$/oB= not $agent->[1] =~ /(?:$vcirc|$consonant)(?:$altere)(?:ei)$/o
ABresult
0X0
100
111
1756 && $agent->[1] !~ /(?:$vcirc|$consonant)(?:$altere)(?:ei)$/o) {
1757 0 $agent->[1] =~ s/($altere)(?=(?:ei)$)/$alter{$1}/o;
1758 }
1759 }
1760  
1761 0 ▶ if($verb eq 'ogonî' ||
Branch: 1 branch
BranchTrueFalseTotal
if ($verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256") { } 0 0 0
Condition0%0/6
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256"
l!l&&r!l&&!r
000
$verb eq "ogon\303\256" or $verb eq "om\303\256"
l!l&&r!l&&!r
000
MC/DC0%0/3
$verb eq "ogon\303\256" or $verb eq "om\303\256" or $verb eq "on\303\256"
$verb eq "ogon\303\256" $verb eq "om\303\256" $verb eq "on\303\256"
Truth table0%0/4
A or B or C
A= $verb eq "ogon\303\256"B= $verb eq "om\303\256"C= $verb eq "on\303\256"
ABCresult
1XX1
01X1
0011
0000
1762 $verb eq 'omî' ||
1763 $verb eq 'onî'
1764 ) {
1765 0 $causative = undef;
1766 } else {
1767 # causative is e- + root + -ūzo
1768 # e- changes to am- before b
1769 # ee- and eê- both go to ē-
1770 0 for($causative) {
1771 0 ▶ s/^b/amb/ || s/^e/ē/ || s/^ê/ē/ || s/^ē/ē/ || s/^/e/;
Branch: 1 branch
BranchTrueFalseTotal
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/ or s/^\304\223/\304\223/ or s/^/e/ 0 0 0
Condition0%0/9
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/ or s/^\304\223/\304\223/
l!l&&r!l&&!r
000
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/
l!l&&r!l&&!r
000
s/^b/amb/ or s/^e/\304\223/
l!l&&r!l&&!r
000
MC/DC0%0/4
s/^b/amb/ or s/^e/\304\223/ or s/^\303\252/\304\223/ or s/^\304\223/\304\223/
s/^b/amb/ s/^e/\304\223/ s/^\303\252/\304\223/ s/^\304\223/\304\223/
Truth table0%0/5
A or B or C or D
A= s/^b/amb/B= s/^e/\304\223/C= s/^\303\252/\304\223/D= s/^\304\223/\304\223/
ABCDresult
1XXX1
01XX1
001X1
00011
00000
1772 0 s/(?:[eai]|ê|â|û)$/ūzo/;
1773 0 ▶ if(/([syc])(?:ūzo)$/
Branch: 1 branch
BranchTrueFalseTotal
if (/([syc])(?:\305\253zo)$/ and exists $rootchange{$1}{$verb}) 0 0 0
Condition0%0/3
/([syc])(?:\305\253zo)$/ and exists $rootchange{$1}{$verb}
!ll&&!rl&&r
000
MC/DC0%0/2
/([syc])(?:\305\253zo)$/ and exists $rootchange{$1}{$verb}
/([syc])(?:\305\253zo)$/ exists $rootchange{$1}{$verb}
Truth table0%0/3
A and B
A= /([syc])(?:\305\253zo)$/B= exists $rootchange{$1}{$verb}
ABresult
0X0
100
111
1774 && exists $rootchange{$1}{$verb})
1775 {
1776 0 s/([syc])(?=(?:ūzo)$)/$rootchange{$1}{$verb}/;
1777 }
1778 }
1779 }
1780  
1781 0 ▶ return wantarray ? ( $active, $passive, $agent, $causative )
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 0 0
1782 : [ $active, $passive, $agent, $causative ];
1783 }
1784  
1785  
1786  
1787 7 my %masc = (
1788 'beire' => 1,
1789 'ferêde' => 1,
1790 'geōre' => 1, # geīre in the lexicon, but it's a misconversion according to Mark
1791 'lūvore' => 1,
1792 'nōre' => 1, # nīre in the morphology, but it's a misconversion according to Mark
1793 'Inibē' => 1,
1794 'sāclore' => 1,
1795 'sārene' => 1,
1796 'sāule' => 1,
1797 'suale' => 1,
1798 'tīble' => 1,
1799 'yine' => 1,
1800 );
1801  
1802 7 my %neut = (
1803 );
1804  
1805 7 my %aetas = (
1806 'āetas' => 1,
1807 'creidas' => 1,
1808 'crindas' => 1,
1809 'dēnedas' => 1,
1810 'mavordas' => 1,
1811 'motas' => 1,
1812 'sambas' => 1,
1813 'sindas' => 1,
1814 'sonurdas' => 1,
1815 'Sūās' => 1,
1816 'tōuresambas' => 1,
1817 'ulidas' => 1,
1818 );
1819  
1820 # t -> s, c -> s, g -> y before -e and -i; x -> c before -i
1821 7 my %changenoun = (
1822 'āeca' => 1,
1823 'āetas' => 1,
1824 'ambecā' => 1,
1825 'bāxe' => 1,
1826 'brexos' => 1,
1827 'erēineca' => 1,
1828 'fūca' => 1,
1829 'gāex' => 1,
1830 'lācato' => 1, # actually an adjective
1831 'rūtas' => 1,
1832 'sīxe' => 1,
1833 'tauca' => 1,
1834 'usūta' => 1,
1835 'xuecos' => 1,
1836 );
1837  
1838 7 my %noun = (
1839 # personal pronouns
1840 'sēo' => [ qw( sēo soex etu sēnu sētu sēco ), (undef) x @cases ],
1841 'sēi' => [ qw( sēi soē etu sēnu sēdi sēlu ), (undef) x @cases ],
1842 'led' => [ qw( led loex ēr linu letu leco ), (undef) x @cases ],
1843 'lei' => [ qw( lei loē ēr linu ledi lelu ), (undef) x @cases ],
1844 'tāu' => [ qw( tāu tāuex tāua tāunu tāutu tāuco ), (undef) x @cases ],
1845 'tāi' => [ qw( tāi tāyē tāya tāinu tāidi tāilu ), (undef) x @cases ],
1846 'tazū' => [ qw( tazū tazuē tāe tānu tātu tāco ), (undef) x @cases ],
1847 'letazū' => [ qw( letazū lotazuē ertāe litānu letātu letāco ), (undef) x @cases ],
1848 'māux' => [ qw( māux muē mū mūna mūta mūco ), (undef) x @cases ],
1849 'cayū' => [ qw( cayū cayuē caē caēnu caētu caēco ), (undef) x @cases ],
1850 'rāe' => [ qw( rāe rāex rā rāenu rāetu rāeco
1851 radē radaē rade radanu radatu radaco ), ],
1852  
1853 # tīble has sg.acc. tībal instead of *tībl,
1854 # and an epenthetic vowel in singular dat. abl. ins.
1855 'tīble' => [ qw( tīble tīblex tībal tīblanu tīblatu tīblaco
1856 tībli tībliē tīblī tīblinu tīblitu tīblico ) ],
1857 );
1858  
1859 9 ▶sub noun {
Subroutine noun: called CC=62 SCAR=68.5
Pod documented
1860 9 my $noun = shift;
1861 9 my $stem = $noun;
1862 9 my $type = 'fem';
1863 9 my $table;
1864  
1865 9 ▶ $type = 'masc' if exists $masc{$noun} || exists $aetas{$noun};
Branch: 1 branch
BranchTrueFalseTotal
if exists $masc{$noun} or exists $aetas{$noun} 0 9 9
Condition33%1/3
exists $masc{$noun} or exists $aetas{$noun}
l!l&&r!l&&!r
009
MC/DC0%0/2
exists $masc{$noun} or exists $aetas{$noun}
exists $masc{$noun} exists $aetas{$noun}
Truth table33%1/3
A or B
A= exists $masc{$noun}B= exists $aetas{$noun}
ABresult
1X1
011
000
1866 9 ▶ $type = 'neut' if exists $neut{$noun};
Branch: 1 branch
BranchTrueFalseTotal
if exists $neut{$noun} 0 9 9
1867  
1868 9 ▶ return $noun{$noun} if exists $noun{$noun};
Branch: 1 branch
BranchTrueFalseTotal
if exists $noun{$noun} 6 3 9
1869  
1870 # masculine
1871 3 ▶ if($stem =~ m/[pbtdcgfvzxmnlr]$/) {
Branch: 19 branches
BranchTrueFalseTotal
if ($stem =~ /[pbtdcgfvzxmnlr]$/) { } 1 2 3
elsif ($type eq 'masc' and $stem =~ s/re$//) { } 0 2 2
elsif ($type eq 'masc' and $stem =~ s/([nld])?e$/$1/) { } 0 2 2
elsif ($type eq 'masc' and $stem =~ s/\304\223$//) { } 0 2 2
elsif ($stem =~ s/os$//) { } 0 2 2
elsif (exists $aetas{$noun} and $stem =~ s/as$//) { } 0 2 2
elsif (exists $aetas{$noun} and $stem =~ s/\304\201s$//) { } 0 2 2
elsif ($stem =~ s/as$//) { } 0 2 2
elsif ($stem =~ s/iu$//) { } 0 2 2
elsif ($stem =~ s/\304\201u$//) { } 0 2 2
elsif ($stem =~ s/u$//) { } 1 1 2
elsif ($stem =~ s/o$//) { } 0 1 1
elsif ($stem =~ s/a$//) { } 1 0 1
elsif ($stem =~ s/\303\242$//) { } 0 0 0
elsif ($stem =~ s/\304\201$//) { } 0 0 0
elsif ($type eq 'fem' and $stem =~ s/e$//) { } 0 0 0
elsif ($type eq 'fem' and $stem =~ s/\303\252$//) { } 0 0 0
elsif ($type eq 'fem' and $stem =~ s/\304\223$//) { } 0 0 0
elsif ($stem =~ s/i$//) { } 0 0 0
1872 1 $type = 'masc';
1873 1 $table = [ map "$stem$_", '', 'ex', '', qw( nu tu co i iē i inu itu ico ) ];
1874 ▶ } elsif($type eq 'masc' && $stem =~ s/re$//) {
Condition33%1/3
$type eq "masc" and $stem =~ s/re$//
!ll&&!rl&&r
200
MC/DC0%0/2
$type eq "masc" and $stem =~ s/re$//
$type eq "masc" $stem =~ s/re$//
Truth table33%1/3
A and B
A= $type eq "masc"B= $stem =~ s/re$//
ABresult
0X0
100
111
1875 0 $table = [ map "$stem$_", 're', 'rex','r', qw( rnu rtu rco i iē ī inu itu ico ) ];
1876 ▶ } elsif($type eq 'masc' && $stem =~ s/([nld])?e$/$1/) {
Condition33%1/3
$type eq "masc" and $stem =~ s/([nld])?e$/$1/
!ll&&!rl&&r
200
MC/DC0%0/2
$type eq "masc" and $stem =~ s/([nld])?e$/$1/
$type eq "masc" $stem =~ s/([nld])?e$/$1/
Truth table33%1/3
A and B
A= $type eq "masc"B= $stem =~ s/([nld])?e$/$1/
ABresult
0X0
100
111
1877 0 $table = [ map "$stem$_", 'e', 'ex', '', qw( nu tu co i iē ī inu itu ico ) ];
1878 ▶ } elsif($type eq 'masc' && $stem =~ s/ē$//) {
Condition33%1/3
$type eq "masc" and $stem =~ s/\304\223$//
!ll&&!rl&&r
200
MC/DC0%0/2
$type eq "masc" and $stem =~ s/\304\223$//
$type eq "masc" $stem =~ s/\304\223$//
Truth table33%1/3
A and B
A= $type eq "masc"B= $stem =~ s/\304\223$//
ABresult
0X0
100
111
1879 0 $table = [ map "$stem$_", qw( ē ēx e enu etu eco ei eiē eii einu eitu eico ) ];
1880 } elsif($stem =~ s/os$//) {
1881 0 $type = 'masc';
1882 0 $table = [ map "$stem$_", 'os', 'ex', '', qw( nu tu co i iē i inu itu ico ) ];
1883 ▶ } elsif(exists $aetas{$noun} && $stem =~ s/as$//) {
Condition33%1/3
exists $aetas{$noun} and $stem =~ s/as$//
!ll&&!rl&&r
200
MC/DC0%0/2
exists $aetas{$noun} and $stem =~ s/as$//
exists $aetas{$noun} $stem =~ s/as$//
Truth table33%1/3
A and B
A= exists $aetas{$noun}B= $stem =~ s/as$//
ABresult
0X0
100
111
1884 0 $table = [ map "$stem$_", qw( as ex a anu atu aco āe aē āe ānu ātu āco ) ];
1885 ▶ } elsif(exists $aetas{$noun} && $stem =~ s/ās$//) {
Condition33%1/3
exists $aetas{$noun} and $stem =~ s/\304\201s$//
!ll&&!rl&&r
200
MC/DC0%0/2
exists $aetas{$noun} and $stem =~ s/\304\201s$//
exists $aetas{$noun} $stem =~ s/\304\201s$//
Truth table33%1/3
A and B
A= exists $aetas{$noun}B= $stem =~ s/\304\201s$//
ABresult
0X0
100
111
1886 0 $table = [ map "$stem$_", qw( ās aex ā ānu ātu āco aāe āē aāe aānu aātu aāco ) ];
1887 } elsif($stem =~ s/as$//) {
1888 0 $type = 'masc';
1889 0 $table = [ map "$stem$_", 'as', 'ex', '', qw( nu tu co i iē i inu itu ico ) ];
1890 }
1891  
1892 # neuter
1893 elsif($stem =~ s/iu$//) {
1894 0 $type = 'neut';
1895 0 $table = [ map "$stem$_", qw( iu iex i inu itu ico iū uē ū ūna ūta ūco ) ];
1896 } elsif($stem =~ s/āu$//) {
1897 0 $type = 'neut';
1898 0 $table = [ map "$stem$_", qw( āu aex â anu ato aco ū uē ū ūna ūta ūco ) ];
1899 } elsif($stem =~ s/u$//) {
1900 1 $type = 'neut';
1901 1 $table = [ map "$stem$_", qw( u ex u nu tu uco ū uē ū ūna ūta ūco ) ];
1902 } elsif($stem =~ s/o$//) {
1903 0 $type = 'neut';
1904 0 $table = [ map "$stem$_", qw( o ex o onu otu oco ō oē ō ōna ōta ōco ) ];
1905 }
1906  
1907 # feminine
1908 elsif($stem =~ s/a$//) {
1909 1 $type = 'fem';
1910 1 $table = [ map "$stem$_", qw( a aē ā anu adi alu ē eē ē ēnu ēdi ēlu ) ];
1911 } elsif($stem =~ s/â$//) {
1912 0 $type = 'fem';
1913 0 $table = [ map "$stem$_", qw( â aē ā ânu âdi âlu ē eē ē ēnu ēdi ēlu ) ];
1914 } elsif($stem =~ s/ā$//) {
1915 0 $type = 'fem';
1916 0 $table = [ map "$stem$_", qw( ā aē ā ānu ādi ālu ē eē ē ēnu ēdi ēlu ) ];
1917 ▶ } elsif($type eq 'fem' && $stem =~ s/e$//) {
Condition0%0/3
$type eq "fem" and $stem =~ s/e$//
!ll&&!rl&&r
000
MC/DC0%0/2
$type eq "fem" and $stem =~ s/e$//
$type eq "fem" $stem =~ s/e$//
Truth table0%0/3
A and B
A= $type eq "fem"B= $stem =~ s/e$//
ABresult
0X0
100
111
1918 0 $table = [ map "$stem$_", qw( e eē ê inu edi elu ē eē ē ēnu ēdi ēco ) ];
1919 ▶ } elsif($type eq 'fem' && $stem =~ s/ê$//) {
Condition0%0/3
$type eq "fem" and $stem =~ s/\303\252$//
!ll&&!rl&&r
000
MC/DC0%0/2
$type eq "fem" and $stem =~ s/\303\252$//
$type eq "fem" $stem =~ s/\303\252$//
Truth table0%0/3
A and B
A= $type eq "fem"B= $stem =~ s/\303\252$//
ABresult
0X0
100
111
1920 0 $table = [ map "$stem$_", qw( ê eē ê inu êdi êlu ē eē ē ēnu ēdi ēco ) ];
1921 ▶ } elsif($type eq 'fem' && $stem =~ s/ē$//) {
Condition0%0/3
$type eq "fem" and $stem =~ s/\304\223$//
!ll&&!rl&&r
000
MC/DC0%0/2
$type eq "fem" and $stem =~ s/\304\223$//
$type eq "fem" $stem =~ s/\304\223$//
Truth table0%0/3
A and B
A= $type eq "fem"B= $stem =~ s/\304\223$//
ABresult
0X0
100
111
1922 0 $table = [ map "$stem$_", qw( ē eē ē ēnu ēdi ēco ē eē ē ēnu ēdi ēco ) ];
1923 } elsif($stem =~ s/i$//) {
1924 0 $type = 'fem';
1925 0 $table = [ map "$stem$_", qw( i iē a inu idi iu ā aē ā ānu ādi ālu ) ];
1926 }
1927  
1928 else {
1929 0 return;
1930 }
1931  
1932 3 ▶ if($type eq 'masc') {
Branch: 3 branches
BranchTrueFalseTotal
if ($type eq 'masc') { } 1 2 3
elsif ($type eq 'neut') { } 1 1 2
elsif ($type eq 'fem') { } 1 0 1
1933 # change root consonant before -ex sg.gen. and -i plural
1934 # except when preceded by another consonant or a long or circumflexed vowel
1935 1 for(@$table) {
1936 12 ▶ if(/$alteri(?:i(?:ē|i|[nt]u|co)?)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$alteri(?:i(?:\304\223|i|[nt]u|co)?)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:i(?:\304\223|i|[nt]u|co)?)$/o) 0 12 12
Condition33%1/3
/$alteri(?:i(?:\304\223|i|[nt]u|co)?)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:i(?:\304\223|i|[nt]u|co)?)$/o
!ll&&!rl&&r
1200
MC/DC0%0/2
/$alteri(?:i(?:\304\223|i|[nt]u|co)?)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:i(?:\304\223|i|[nt]u|co)?)$/o
/$alteri(?:i(?:\304\223|i|[nt]u|co)?)$/o not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:i(?:\304\223|i|[nt]u|co)?)$/o
Truth table33%1/3
A and not(B)
A= /$alteri(?:i(?:\304\223|i|[nt]u|co)?)$/oB= not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:i(?:\304\223|i|[nt]u|co)?)$/o
ABresult
0X0
100
111
1937 && !/(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:i(?:ē|i|[nt]u|co)?)$/o) {
1938 0 s/($alteri)(?=i(?:ē|i|[nt]u|co)?$)/$alter{$1}/o;
1939 }
1940 12 ▶ if(/$altere(?:ex)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$altere(?:ex)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o) 0 12 12
Condition33%1/3
/$altere(?:ex)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o
!ll&&!rl&&r
1200
MC/DC0%0/2
/$altere(?:ex)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o
/$altere(?:ex)$/o not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o
Truth table33%1/3
A and not(B)
A= /$altere(?:ex)$/oB= not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o
ABresult
0X0
100
111
1941 && !/(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o) {
1942 0 s/($altere)(?=ex$)/$alter{$1}/o;
1943 }
1944 }
1945  
1946 # change -vas to -f- in the singular except genitive
1947 1 ▶ if($noun =~ /vas$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($noun =~ /vas$/) 0 1 1
1948 0 for(@{$table}[2..5]) {
1949 0 s/v(?=(?:[nt]u|co)?$)/f/;
1950 }
1951 }
1952  
1953 # change -zos to -s-, ditto
1954 1 ▶ if($noun =~ /zos$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($noun =~ /zos$/) 0 1 1
1955 0 for(@{$table}[2..5]) {
1956 0 s/z(?=(?:[nt]u|co)?$)/s/;
1957 }
1958 }
1959  
1960 # assimilate voicing and place of articulation for -nu, -tu, -co forms
1961 1 for(@{$table}[3..5]) {
1962 3 s/($ustop)(?=$voiced)/$voiced{$1}/g;
1963 3 s/($vstop)(?=$unvoiced)/$unvoiced{$1}/g;
1964 3 s/n(?=$labial)/m/g;
1965 3 s/m(?=$dental)/n/g;
1966 }
1967 } elsif($type eq 'neut') {
1968 # change root consonant before -ex sg.gen. and -ī plural
1969 # except when preceded by another consonant or a long or circumflexed vowel
1970 1 for(@$table) {
1971 12 ▶ if(/$alteri(?:ī(?:[nt]a|co)?)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$alteri(?:\304\253(?:[nt]a|co)?)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:\304\253(?:[nt]a|co)?)$/o) 0 12 12
Condition33%1/3
/$alteri(?:\304\253(?:[nt]a|co)?)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:\304\253(?:[nt]a|co)?)$/o
!ll&&!rl&&r
1200
MC/DC0%0/2
/$alteri(?:\304\253(?:[nt]a|co)?)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:\304\253(?:[nt]a|co)?)$/o
/$alteri(?:\304\253(?:[nt]a|co)?)$/o not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:\304\253(?:[nt]a|co)?)$/o
Truth table33%1/3
A and not(B)
A= /$alteri(?:\304\253(?:[nt]a|co)?)$/oB= not /(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:\304\253(?:[nt]a|co)?)$/o
ABresult
0X0
100
111
1972 && !/(?:$vlong|$vcirc|$consonant)(?:$alteri)(?:ī(?:[nt]a|co)?)$/o) {
1973 0 s/($alteri)(?=ī(?:[nt]a|co)?$)/$alter{$1}/o;
1974 }
1975 12 ▶ if(/$altere(?:ex)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$altere(?:ex)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o) 0 12 12
Condition33%1/3
/$altere(?:ex)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o
!ll&&!rl&&r
1200
MC/DC0%0/2
/$altere(?:ex)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o
/$altere(?:ex)$/o not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o
Truth table33%1/3
A and not(B)
A= /$altere(?:ex)$/oB= not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o
ABresult
0X0
100
111
1976 && !/(?:$vlong|$vcirc|$consonant)(?:$altere)(?:ex)$/o) {
1977 0 s/($altere)(?=ex$)/$alter{$1}/o;
1978 }
1979 }
1980  
1981 # change -Viu and -Viū to -Vyu and -Vyū in nom.sg. and nom.pl. of -iu nouns
1982 # also, change altered root consonants back in the plural gen..ins
1983 1 ▶ if($noun =~ /iu$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($noun =~ /iu$/) 0 1 1
1984 0 $table->[0] =~ s/($vowel)iu$/$1yu/;
1985 0 $table->[6] =~ s/($vowel)iū$/$1yū/;
1986  
1987 0 for(@{$table}[7..11]) {
1988 0 ▶ if(/($altered)(?:uē|ū(?:[nt]a|co)?)$/o && exists $rootchange{$1}{$noun}) {
Branch: 1 branch
BranchTrueFalseTotal
if (/($altered)(?:u\304\223|\305\253(?:[nt]a|co)?)$/o and exists $rootchange{$1}{$noun}) 0 0 0
Condition0%0/3
/($altered)(?:u\304\223|\305\253(?:[nt]a|co)?)$/o and exists $rootchange{$1}{$noun}
!ll&&!rl&&r
000
MC/DC0%0/2
/($altered)(?:u\304\223|\305\253(?:[nt]a|co)?)$/o and exists $rootchange{$1}{$noun}
/($altered)(?:u\304\223|\305\253(?:[nt]a|co)?)$/o exists $rootchange{$1}{$noun}
Truth table0%0/3
A and B
A= /($altered)(?:u\304\223|\305\253(?:[nt]a|co)?)$/oB= exists $rootchange{$1}{$noun}
ABresult
0X0
100
111
1989 0 s/($altered)(?=(?:uē|ū(?:[nt]a|co)?)$)/$rootchange{$1}{$noun}/o;
1990 }
1991 }
1992 }
1993 } elsif($type eq 'fem') {
1994 # change root consonant before -e or -ē plurals of -a nouns
1995 # except when preceded by another consonant or a long or circumflexed vowel
1996 1 ▶ if($noun =~ /a$/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($noun =~ /a$/) { } 1 0 1
elsif ($noun =~ /i$/) { } 0 0 0
1997 1 for(@{$table}[6..11]) {
1998 6 ▶ if(/$altere(?:eē|ē(?:[nl]u|di)?)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$altere(?:e\304\223|\304\223(?:[nl]u|di)?)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:e\304\223|\304\223(?:[nl]u|di)?)$/o) 0 6 6
Condition33%1/3
/$altere(?:e\304\223|\304\223(?:[nl]u|di)?)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:e\304\223|\304\223(?:[nl]u|di)?)$/o
!ll&&!rl&&r
600
MC/DC0%0/2
/$altere(?:e\304\223|\304\223(?:[nl]u|di)?)$/o and not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:e\304\223|\304\223(?:[nl]u|di)?)$/o
/$altere(?:e\304\223|\304\223(?:[nl]u|di)?)$/o not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:e\304\223|\304\223(?:[nl]u|di)?)$/o
Truth table33%1/3
A and not(B)
A= /$altere(?:e\304\223|\304\223(?:[nl]u|di)?)$/oB= not /(?:$vlong|$vcirc|$consonant)(?:$altere)(?:e\304\223|\304\223(?:[nl]u|di)?)$/o
ABresult
0X0
100
111
1999 && !/(?:$vlong|$vcirc|$consonant)(?:$altere)(?:eē|ē(?:[nl]u|di)?)$/o) {
2000 0 s/($altere)(?=(?:eē|ē(?:[nl]u|di)?)$)/$alter{$1}/o;
2001 }
2002 }
2003 }
2004  
2005 # change -Viē to -Vyē in sg.gen. of -i nouns
2006 # also, change altered root consonants back in the sg.acc. and plural
2007 elsif($noun =~ /i$/) {
2008 0 $table->[1] =~ s/($vowel)iē$/$1yē/;
2009  
2010 0 for(@{$table}[2,6..11]) {
2011 0 ▶ if(/($altered)(?:aē|ā(?:[nl]u|di)?)$/o && exists $rootchange{$1}{$noun}) {
Branch: 1 branch
BranchTrueFalseTotal
if (/($altered)(?:a\304\223|\304\201(?:[nl]u|di)?)$/o and exists $rootchange{$1}{$noun}) 0 0 0
Condition0%0/3
/($altered)(?:a\304\223|\304\201(?:[nl]u|di)?)$/o and exists $rootchange{$1}{$noun}
!ll&&!rl&&r
000
MC/DC0%0/2
/($altered)(?:a\304\223|\304\201(?:[nl]u|di)?)$/o and exists $rootchange{$1}{$noun}
/($altered)(?:a\304\223|\304\201(?:[nl]u|di)?)$/o exists $rootchange{$1}{$noun}
Truth table0%0/3
A and B
A= /($altered)(?:a\304\223|\304\201(?:[nl]u|di)?)$/oB= exists $rootchange{$1}{$noun}
ABresult
0X0
100
111
2012 0 s/($altered)(?=(?:aē|ā(?:[nl]u|di)?)$)/$rootchange{$1}{$noun}/o;
2013 }
2014 }
2015 }
2016 }
2017  
2018 3 return $table;
2019 }
2020  
2021 7 my %root = (
2022 );
2023  
2024 0 ▶sub root {
Subroutine root: not called CC=28 SCAR=67.0
Pod documented
2025 0 my $noun = shift;
2026 0 my $stem = $noun;
2027 0 my $type = 'fem';
2028 0 my $table;
2029  
2030 0 ▶ $type = 'masc' if exists $masc{$noun};
Branch: 1 branch
BranchTrueFalseTotal
if exists $masc{$noun} 0 0 0
2031 0 ▶ $type = 'neut' if exists $neut{$noun};
Branch: 1 branch
BranchTrueFalseTotal
if exists $neut{$noun} 0 0 0
2032  
2033 0 ▶ return $root{$noun} if exists $root{$noun};
Branch: 1 branch
BranchTrueFalseTotal
if exists $root{$noun} 0 0 0
2034  
2035 # masculine
2036 0 ▶ if($stem =~ m/[pbtdcgfvzxmnlr]$/) {
Branch: 12 branches
BranchTrueFalseTotal
if ($stem =~ /[pbtdcgfvzxmnlr]$/) { } 0 0 0
elsif ($type eq 'masc' and $stem =~ s/e$//) { } 0 0 0
elsif ($stem =~ s/os$//) { } 0 0 0
elsif (exists $aetas{$noun} and $stem =~ s/as$//) { } 0 0 0
elsif ($stem =~ s/as$//) { } 0 0 0
elsif ($stem =~ s/iu$//) { } 0 0 0
elsif ($stem =~ s/u$//) { } 0 0 0
elsif ($stem =~ s/o$//) { } 0 0 0
elsif ($stem =~ s/\304\201u$//) { } 0 0 0
elsif ($stem =~ s/a$// or $stem =~ s/\303\242$// or $stem =~ s/\304\201$//) { } 0 0 0
elsif ($type eq 'fem' and $stem =~ s/e$//) { } 0 0 0
elsif ($stem =~ s/i$//) { } 0 0 0
2037 0 $table = $stem . 'i-';
2038 ▶ } elsif($type eq 'masc' && $stem =~ s/e$//) {
Condition0%0/3
$type eq "masc" and $stem =~ s/e$//
!ll&&!rl&&r
000
MC/DC0%0/2
$type eq "masc" and $stem =~ s/e$//
$type eq "masc" $stem =~ s/e$//
Truth table0%0/3
A and B
A= $type eq "masc"B= $stem =~ s/e$//
ABresult
0X0
100
111
2039 0 $table = $stem . 'i-';
2040 } elsif($stem =~ s/os$//) {
2041 0 $table = $stem . 'i-';
2042 ▶ } elsif(exists $aetas{$noun} && $stem =~ s/as$//) {
Condition0%0/3
exists $aetas{$noun} and $stem =~ s/as$//
!ll&&!rl&&r
000
MC/DC0%0/2
exists $aetas{$noun} and $stem =~ s/as$//
exists $aetas{$noun} $stem =~ s/as$//
Truth table0%0/3
A and B
A= exists $aetas{$noun}B= $stem =~ s/as$//
ABresult
0X0
100
111
2043 0 $table = $stem . 'a-';
2044 } elsif($stem =~ s/as$//) {
2045 0 $table = $stem . 'i-';
2046 }
2047  
2048 # neuter
2049 elsif($stem =~ s/iu$//) {
2050 0 $table = $stem . 'i-';
2051 } elsif($stem =~ s/u$//) {
2052 0 $table = $stem . 'u-';
2053 } elsif($stem =~ s/o$//) {
2054 0 $table = $stem . 'o-';
2055 } elsif($stem =~ s/āu$//) {
2056 0 $table = $stem . 'a-';
2057 }
2058  
2059 # feminine
2060 ▶ elsif($stem =~ s/a$// || $stem =~ s/â$// || $stem =~ s/ā$//) {
Condition0%0/6
$stem =~ s/a$// or $stem =~ s/\303\242$// or $stem =~ s/\304\201$//
l!l&&r!l&&!r
000
$stem =~ s/a$// or $stem =~ s/\303\242$//
l!l&&r!l&&!r
000
MC/DC0%0/3
$stem =~ s/a$// or $stem =~ s/\303\242$// or $stem =~ s/\304\201$//
$stem =~ s/a$// $stem =~ s/\303\242$// $stem =~ s/\304\201$//
Truth table0%0/4
A or B or C
A= $stem =~ s/a$//B= $stem =~ s/\303\242$//C= $stem =~ s/\304\201$//
ABCresult
1XX1
01X1
0011
0000
2061 0 $table = $stem . 'e-';
2062 ▶ } elsif($type eq 'fem' && $stem =~ s/e$//) {
Condition0%0/3
$type eq "fem" and $stem =~ s/e$//
!ll&&!rl&&r
000
MC/DC0%0/2
$type eq "fem" and $stem =~ s/e$//
$type eq "fem" $stem =~ s/e$//
Truth table0%0/3
A and B
A= $type eq "fem"B= $stem =~ s/e$//
ABresult
0X0
100
111
2063 0 $table = $stem . 'i-';
2064 } elsif($stem =~ s/i$//) {
2065 0 $table = $stem . 'i-';
2066 }
2067  
2068 else {
2069 0 return;
2070 }
2071  
2072 0 for($table) {
2073 # change root consonant before -e and -i
2074 # except when preceded by another consonant or a circumflexed vowel
2075 0 ▶ if(/$alteri(?:i-)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$alteri(?:i-)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:i-)$/o) 0 0 0
Condition0%0/3
/$alteri(?:i-)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:i-)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$alteri(?:i-)$/o and not /(?:$vcirc|$consonant)(?:$alteri)(?:i-)$/o
/$alteri(?:i-)$/o not /(?:$vcirc|$consonant)(?:$alteri)(?:i-)$/o
Truth table0%0/3
A and not(B)
A= /$alteri(?:i-)$/oB= not /(?:$vcirc|$consonant)(?:$alteri)(?:i-)$/o
ABresult
0X0
100
111
2076 && !/(?:$vcirc|$consonant)(?:$alteri)(?:i-)$/o) {
2077 0 s/($alteri)(?=(?:i-)$)/$alter{$1}/o;
2078 }
2079 0 ▶ if(/$altere(?:e-)$/o
Branch: 1 branch
BranchTrueFalseTotal
if (/$altere(?:e-)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:e-)$/o) 0 0 0
Condition0%0/3
/$altere(?:e-)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:e-)$/o
!ll&&!rl&&r
000
MC/DC0%0/2
/$altere(?:e-)$/o and not /(?:$vcirc|$consonant)(?:$altere)(?:e-)$/o
/$altere(?:e-)$/o not /(?:$vcirc|$consonant)(?:$altere)(?:e-)$/o
Truth table0%0/3
A and not(B)
A= /$altere(?:e-)$/oB= not /(?:$vcirc|$consonant)(?:$altere)(?:e-)$/o
ABresult
0X0
100
111
2080 && !/(?:$vcirc|$consonant)(?:$altere)(?:e-)$/o) {
2081 0 s/($altere)(?=(?:e-)$)/$alter{$1}/o;
2082 }
2083  
2084 # restore original root consonant before -a -o -u
2085 0 ▶ if(/([syc])[aou]-$/
Branch: 1 branch
BranchTrueFalseTotal
if (/([syc])[aou]-$/ and exists $rootchange{$1}{$noun}) 0 0 0
Condition0%0/3
/([syc])[aou]-$/ and exists $rootchange{$1}{$noun}
!ll&&!rl&&r
000
MC/DC0%0/2
/([syc])[aou]-$/ and exists $rootchange{$1}{$noun}
/([syc])[aou]-$/ exists $rootchange{$1}{$noun}
Truth table0%0/3
A and B
A= /([syc])[aou]-$/B= exists $rootchange{$1}{$noun}
ABresult
0X0
100
111
2086 && exists $rootchange{$1}{$noun})
2087 {
2088 0 s/([syc])[aou]-$/$rootchange{$1}{$noun}/;
2089 }
2090 }
2091  
2092 0 return $table;
2093 }
2094  
2095 7 my %adj = (
2096 );
2097  
2098 1 ▶sub adj {
Subroutine adj: called CC=6 SCAR=25.4
Pod documented
2099 1 my $adj = shift;
2100 1 my $stem = $adj;
2101 1 my $table;
2102  
2103 1 ▶ return $adj{$adj} if exists $adj{$adj};
Branch: 1 branch
BranchTrueFalseTotal
if exists $adj{$adj} 0 1 1
2104  
2105 1 ▶ if($stem =~ s/o$//) {
Branch: 4 branches
BranchTrueFalseTotal
if ($stem =~ s/o$//) { } 1 0 1
elsif ($stem =~ s/e$//) { } 0 0 0
elsif ($stem =~ s/\303\252$//) { } 0 0 0
elsif ($stem =~ s/i$//) { } 0 0 0
2106 1 $table = [ [ map "$stem$_", qw( e ex e nu tu co i iē i inu itu ico ) ],
2107 [ map "$stem$_", qw( o ex o onu otu oco ō oē ō ōna ōta ōco ) ],
2108 [ map "$stem$_", qw( a aē a anu adi alu ē eē ē ēnu ēdi ēlu ) ], ];
2109 } elsif($stem =~ s/e$//) {
2110 0 $table = [ [ map "$stem$_", qw( e ex e nu tu co i iē i inu itu ico ) ],
2111 [ map "$stem$_", qw( e ex e inu etu eco ēi eē ēi ēinu ēitu ēico ) ],
2112 [ map "$stem$_", qw( e eē e inu edi elu ē eē ē ēnu ēdi ēlu ) ], ];
2113 } elsif($stem =~ s/ê$//) {
2114 0 $table = [ [ map "$stem$_", qw( ê ex ê nu tu co i iē i inu itu ico ) ],
2115 [ map "$stem$_", qw( ê ex ê inu êtu êco ēi eē ēi ēinu ēitu ēico ) ],
2116 [ map "$stem$_", qw( ê eē ê inu êdi êlu ē eē ē ēnu ēdi ēlu ) ], ];
2117 } elsif($stem =~ s/i$//) {
2118 0 $table = [ [ map "$stem$_", qw( i iex i inu itu ico ū uē ū ūna ūta ūco ) ],
2119 [ map "$stem$_", qw( i iex i inu itu ico ū uē ū ūna ūta ūco ) ],
2120 [ map "$stem$_", qw( i iē i inu idi iu ā aē ā ānu ādi ālu ) ], ];
2121 } else {
2122 0 return;
2123 }
2124  
2125 # TODO - add root changes e.g. -si --> -c- in the plural
2126  
2127 1 return $table;
2128 }
2129  
2130  
2131 7 my %comp = (
2132 );
2133  
2134 9 ▶sub comp {
Subroutine comp: called CC=8 SCAR=20.9
Pod documented
2135 9 my $adj = shift;
2136 9 my $stem = $adj;
2137 9 my $word;
2138  
2139 9 ▶ return $comp{$adj} if exists $comp{$adj};
Branch: 1 branch
BranchTrueFalseTotal
if exists $comp{$adj} 0 9 9
2140  
2141 9 ▶ if($stem =~ s/o$//) {
Branch: 3 branches
BranchTrueFalseTotal
if ($stem =~ s/o$//) { } 3 6 9
elsif ($stem =~ s/e$//) { } 3 3 6
elsif ($stem =~ s/i$//) { } 3 0 3
2142 3 ▶ if($stem =~ /$vlong/o) {
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$vlong/o) { } 2 1 3
2143 2 $word = $stem . 'ate';
2144 } else {
2145 1 $word = $stem . 'âte';
2146 }
2147 } elsif($stem =~ s/e$//) {
2148 3 ▶ if($stem =~ /$vlong/o) {
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$vlong/o) { } 2 1 3
2149 2 $word = $stem . 'ase';
2150 } else {
2151 1 $word = $stem . 'âse';
2152 }
2153 } elsif($stem =~ s/i$//) {
2154 3 ▶ if($stem =~ /$vlong/o) {
Branch: 1 branch
BranchTrueFalseTotal
if ($stem =~ /$vlong/o) { } 1 2 3
2155 1 $word = $stem . 'ise';
2156 } else {
2157 2 $word = $stem . 'îse';
2158 }
2159 } else {
2160 0 return;
2161 }
2162  
2163 9 return $word;
2164 }
2165  
2166  
2167 7 my %comb = (
2168 );
2169  
2170 0 ▶sub comb {
Subroutine comb: not called CC=5 SCAR=34.0
Pod documented
2171 0 my $adj = shift;
2172 0 my $stem = $adj;
2173  
2174 0 ▶ return $comb{$adj} if exists $comb{$adj};
Branch: 1 branch
BranchTrueFalseTotal
if exists $comb{$adj} 0 0 0
2175  
2176 0 ▶ if($stem =~ m/o$/) {
Branch: 3 branches
BranchTrueFalseTotal
if ($stem =~ /o$/) { } 0 0 0
elsif ($stem =~ s/e$//) { } 0 0 0
elsif ($stem =~ /i$/) { } 0 0 0
2177 0 return $stem;
2178 } elsif($stem =~ s/e$//) {
2179 0 return $stem . 'i';
2180 } elsif($stem =~ m/i$/) {
2181 0 return $stem;
2182 } else {
2183 0 return;
2184 }
2185 }
2186  
2187  
2188 7 my %long = (
2189 'a' => 'ā',
2190 'e' => 'ē',
2191 'i' => 'ī',
2192 'o' => 'ō',
2193 'u' => 'ū',
2194 'A' => 'Ā',
2195 'E' => 'Ē',
2196 'I' => 'Ī',
2197 'O' => 'Ō',
2198 'U' => 'Ū',
2199 );
2200  
2201 0 ▶sub assimilate {
Subroutine assimilate: not called CC=3 SCAR=24.8
Pod undocumented
2202 0 ▶ return unless ref $_[0];
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0] 0 0 0
2203 # Apply sound changes
2204 0 for(@{$_[0]}) {
2205 # 1. A stop assimilates to a following consonant in voicing
2206 0 s/($ustop)(?=$voiced)/$voiced{$1}/g;
2207 0 s/($vstop)(?=$unvoiced)/$unvoiced{$1}/g;
2208  
2209 # 2. n before m, b, p, l --> m; m before t, d, c, g, x --> n
2210 0 s/n(?=$labial)/m/g;
2211 0 s/m(?=$dental)/n/g;
2212  
2213 # 3. aa --> ā, etc:
2214 0 s/($vowel)\1/$long{$vowel}/g;
2215  
2216 # 4. y before a consonant becomes i;
2217 # i between two other vowels becomes y
2218 0 s/y(?=$consonant)/i/g;
2219 0 s/($vowel)i(?=$vowel)/$1y/g;
2220 }
2221 }
2222  
2223  
2224 7 1;
2225 __END__
↑ Summary