blib/lib/Lingua/Zompist/Barakhinei.pm

filter: Statementstmt 85.4% 322 / 377 Branchbran 67.9% 223 / 328 Conditioncond 40.5% 118 / 291 MC/DCmcdc 21.5% 40 / 186 Subroutinesub 100% 15 / 15 Podpod 100% 9 / 9 totaltotal 60.2% 727 / 1206 CC 284 SCAR 63.2
CC
284
Cov
67%
noun
1734.7
demeric
51.4
part
51.3
CRAP 557.7
↑ Summary
1 package Lingua::Zompist::Barakhinei;
2 # vim:set sw=2 cin cinkeys-=0#:
3  
4 11 ▶use 5.005;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 # use re 'debug';
7  
8 11 require Exporter;
9 11 ▶use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 11 ▶use vars qw($gendertab $pluraltab $rootconstab $subjtab);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 11 ▶use vars qw($cadhctab $cadhgtab $cadhutab);
Subroutine BEGIN: called CC=1 SCAR=0.0
12 11 ▶use vars qw($classtab);
Subroutine BEGIN: called CC=1 SCAR=0.0
13 11 @ISA = qw(Exporter);
14  
15 # Items to export into callers namespace by default. Note: do not export
16 # names by default without a very good reason. Use EXPORT_OK instead.
17 # Do not simply export all your public functions/methods/constants.
18  
19 # This allows declaration use Lingua::Zompist::Barakhinei ':all';
20 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
21 # will save memory.
22 11 %EXPORT_TAGS = (
23 'tabs' => [ qw(
24 $gendertab
25 $pluraltab
26 $rootconstab
27 $subjtab
28 $cadhutab
29 $cadhgtab
30 $cadhctab
31 ) ],
32 'all' => [ qw(
33 demeric
34 scrifel
35 izhcrifel
36 budemeric
37 buscrifel
38 befel
39 part
40 noun
41 adj
42 ) ],
43 );
44  
45 11 push @{$EXPORT_TAGS{'all'}}, @{$EXPORT_TAGS{'tabs'}};
46  
47 11 @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
48  
49 11 @EXPORT = qw(
50
51 );
52 11 $VERSION = '0.02';
53  
54 11 my %verb = (demeric => \&demeric,
55 scrifel => \&scrifel,
56 izhcrifel => \&izhcrifel,
57 budemeric => \&budemeric,
58 buscrifel => \&buscrifel,
59 befel => \&befel,
60 part => \&part,
61 );
62  
63 11 my @persons = qw(sû lê ât ta mukh kâ);
64  
65 11 my @cases = qw(nom gen acc dat);
66  
67 11 my @numbers = qw(sing pl);
68  
69 # Some handy things for -i- insertion and moving stress
70 11 my $cons = qr/(?:[ctdsknlr]h|[pbtdkgfvszhmnlr])/;
71 11 my $consend = qr/[hpbtdkgfvszhmnlr]$/;
72 11 my $vow = qr/[aeiouâêîôûAEIOUÂÊÎÔÛ]/;
73  
74 # spirant forms
75 11 my %spir = (
76 d => 'dh',
77 t => 'th',
78 p => 'v',
79 );
80  
81  
82 # Verbs with stems ending in -c in Cadhinor
83 11 $cadhctab = {
84 'dichi' => 'DUCIR',
85 'faichi' => 'FAUCIR',
86 'farki' => 'FARCIR',
87 'fênki' => 'VENCIR',
88 'foka' => 'VOCAN',
89 'hashki' => 'HASCIR',
90 'hêshki' => 'HESCIR',
91 'kaoka' => 'CAUCAN',
92 'kashki' => 'KASCIR',
93 'kêshkê' => 'KESCEN',
94 'krêshki' => 'CRESCIR',
95 'lachê' => 'LACEN',
96 'lêshkê' => 'LESCEN',
97 'manka' => 'MANCAN',
98 'oloka' => 'OLOCAN',
99 'prechê' => 'PRECER',
100 'rashki' => 'RASCIR',
101 'shkolichê' => 'SCOLICER',
102 'snuka' => 'SNUCAN',
103 'tôshkê' => 'TOSCEN',
104 'trankê' => 'TRANCEN',
105 };
106  
107 # Verbs with stems ending in -g in Cadhinor
108 11 $cadhgtab = {
109 'benhi' => 'BENGIR',
110 'briga' => 'BRIGAN',
111 'fachi' => 'VAGIR',
112 'glonhê' => 'GLONGEC',
113 'grochê' => 'GROGEC',
114 'hachê' => 'IAGEN',
115 'ilhê' => 'ULGEC',
116 'klachê' => 'CLAGER',
117 'kochi' => 'COGIR',
118 'krechê' => 'CREGEN',
119 'lega' => 'LEGAN',
120 'mêrgê' => 'MERGEN',
121 'nochê' => 'NOGEN',
122 'puga' => 'PUGAN',
123 'trachê' => 'TRAGEN',
124 'troga' => 'TROGAN',
125 };
126  
127 # Verbs with stems ending in -uC in Cadhinor
128 11 $cadhutab = {
129 'burukha' => 'BURUKHAN',
130 'chidê' => 'CIUDER',
131 'chura' => 'TURAN',
132 'dhirê' => 'DHUREC',
133 'dichi' => 'DUCIR',
134 'dimê' => 'DUMEC',
135 'faichi' => 'FAUCIR',
136 'faoba' => 'FAUBAN',
137 'fedhura' => 'VETHURAN',
138 'fura' => 'FURAN',
139 'glunti' => 'GLUNTIR',
140 'gushta' => 'GUSTAN',
141 'hizi' => 'IUSIR',
142 'idura' => 'IDURAN',
143 'ilhê' => 'ULGEC',
144 'ilubra' => 'ILUBRAN',
145 'ishkuza' => 'ISKUSAN',
146 'izubrê' => 'ISUBREN',
147 'kaoka' => 'CAUCAN',
148 'kitê' => 'CUTEC',
149 'kupi' => 'CULPIR',
150 'kurê' => 'CURREC',
151 'laoda' => 'LAUDAN',
152 'laota' => 'LAUTAN',
153 'liri' => 'LURIR',
154 'lôndura' => 'LONDURAN',
155 'meundê' => 'MEHUNDEN',
156 'niri' => 'NURIR',
157 'plii' => 'PLUHIR',
158 'pua' => 'PUHAN',
159 'puga' => 'PUGAN',
160 'raola' => 'RAULAN',
161 'rênlaoda' => 'RENLAUDAN',
162 'rêshkuli' => 'RESCULLIR',
163 'ridhê' => 'RUTHER',
164 'rizundê' => 'RISUNDEN',
165 'shkechubrê' => 'SCEIUBREN',
166 'shpiri' => 'SPURIR',
167 'sidi' => 'SUDIR',
168 'snuka' => 'SNUCAN',
169 'subra' => 'SUBRAN',
170 'sudri' => 'SUDRIR',
171 'taobrê' => 'TAUBREN',
172 'traoda' => 'TRAUDAN',
173 'ubri' => 'UBRIR',
174 };
175  
176 # Verb classes
177 11 $classtab = {
178 }; # %class
179  
180 # Separate subjunctive stems
181 11 $subjtab = {
182 'achupua' => 'achupoa',
183 'da' => 'dona',
184 'dichi' => 'doki',
185 'feriê' => 'fêrsê',
186 'fôtê' => 'fêlsê',
187 'hizi' => 'hôrsi',
188 'ihmêta' => 'ihmêrsa',
189 'kêshkê' => 'kêsê',
190 'kolaoda' => 'koloda',
191 'kudichi' => 'kudoki',
192 'laoda' => 'loda',
193 'lega' => 'loga',
194 'lêshkê' => 'lêsê',
195 'mêta' => 'mêrsa',
196 'noê' => 'nozê',
197 'pua' => 'poa',
198 'puga' => 'poga',
199 'rênlaoda' => 'rênloda',
200 'rênlelê' => 'rênlêlsê',
201 'shterê' => 'shtêrsê',
202 'sôtê' => 'sêlsê',
203 'subra' => 'sôbra',
204 'tôshkê' => 'tôsê',
205 }; # $subjtab
206  
207  
208 11 my %demeric = (
209 'epeza' => [ qw( ûzâ ûzê epê epeza epezu ûzôn ) ],
210 'eza' => [ qw( sâ sê ê eza ezu sôn ) ],
211 'fâli' => [ qw( fâl fêl fêl fâlu fâlu fâlîn ) ],
212 'foli' => [ qw( ful ful fut folu folu folîn ) ],
213 'hizi' => [ qw( huz hu hut hizu hizu hizîn ) ],
214 'kedhê' => [ qw( kedhâ kedhê kedhu kedha kedhu kên ) ],
215 'lhibê' => [ qw( lhua lhû lhu lhubu lhubu lôn ) ],
216 'nhê' => [ qw( nhe ni ni nheza nhezu nhên ) ],
217 'oi' => [ qw( oh fi fit ou ou oîn ) ],
218 'shkrivê' => [ qw( shkriva shkri shkri shkrivu shkrivu shkrivôn ) ],
219 'shtanê' => [ qw( shtâ shtê shtê shtana shtanu shtôn ) ],
220 'rênshtanê' => [ qw( rênshtâ rênshtê rênshtê rênshtana rênshtanu rênshtôn ) ],
221 );
222  
223 23 ▶sub demeric {
Subroutine demeric: called CC=44 SCAR=39.4
Pod documented
224 23 my $verb = shift;
225 23 my $class = shift;
226 23 my $stem = $verb;
227 23 my $table;
228  
229 23 ▶ return $demeric{$verb} if exists $demeric{$verb};
Branch: 1 branch
BranchTrueFalseTotal
if exists $demeric{$verb} 11 12 23
230  
231 12 ▶ if(! defined($class) && exists $classtab->{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}) 0 12 12
Condition33%1/3
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
!ll&&!rl&&r
1200
MC/DC0%0/2
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
not defined $class exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
Truth table33%1/3
not(A) and B
A= not defined $classB= exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
ABresult
0X0
100
111
232 0 $class = $classtab->{$verb};
233 }
234  
235 12 ▶ $class = 2 if !defined($class) && $verb =~ /a$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /a$/ 0 12 12
Condition33%1/3
not defined $class and $verb =~ /a$/
!ll&&!rl&&r
1200
MC/DC0%0/2
not defined $class and $verb =~ /a$/
not defined $class $verb =~ /a$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /a$/
ABresult
0X0
100
111
236 12 ▶ $class = 3 if !defined($class) && $verb =~ /ê$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /\352$/ 0 12 12
Condition33%1/3
not defined $class and $verb =~ /\352$/
!ll&&!rl&&r
1200
MC/DC0%0/2
not defined $class and $verb =~ /\352$/
not defined $class $verb =~ /\352$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /\352$/
ABresult
0X0
100
111
237 12 ▶ $class = 4 if !defined($class) && $verb =~ /i$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /i$/ 0 12 12
Condition33%1/3
not defined $class and $verb =~ /i$/
!ll&&!rl&&r
1200
MC/DC0%0/2
not defined $class and $verb =~ /i$/
not defined $class $verb =~ /i$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /i$/
ABresult
0X0
100
111
238 12 ▶ $class = 0 unless defined $class;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $class 0 12 12
239  
240 12 ▶ if($class == 1 && $stem =~ s/ê$//) {
Branch: 5 branches
BranchTrueFalseTotal
if ($class == 1 and $stem =~ s/\352$//) { } 2 10 12
elsif ($stem =~ s/a$//) { } 3 7 10
elsif ($class == 3 and $stem =~ s/\352$//) { } 2 5 7
elsif ($stem =~ s/i$//) { } 2 3 5
elsif ($class == 5 and $stem =~ s/\352$//) { } 3 0 3
Condition66%2/3
$class == 1 and $stem =~ s/\352$//
!ll&&!rl&&r
1002
MC/DC50%1/2
$class == 1 and $stem =~ s/\352$//
$class == 1 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 1B= $stem =~ s/\352$//
ABresult
0X0
100
111
241 2 $table = [ map "$stem$_", qw( a û ê u u ôn ) ];
242 } elsif($stem =~ s/a$//) {
243 3 $table = [ map "$stem$_", qw( â ê ê a u ôn ) ];
244 ▶ } elsif($class == 3 && $stem =~ s/ê$//) {
Condition66%2/3
$class == 3 and $stem =~ s/\352$//
!ll&&!rl&&r
502
MC/DC50%1/2
$class == 3 and $stem =~ s/\352$//
$class == 3 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 3B= $stem =~ s/\352$//
ABresult
0X0
100
111
245 2 $table = [ map "$stem$_", qw( â ê ê a u ên ) ];
246 } elsif($stem =~ s/i$//) {
247 2 $table = [ map "$stem$_", '', qw( û i u u în ) ];
248 ▶ } elsif($class == 5 && $stem =~ s/ê$//) {
Condition33%1/3
$class == 5 and $stem =~ s/\352$//
!ll&&!rl&&r
003
MC/DC0%0/2
$class == 5 and $stem =~ s/\352$//
$class == 5 $stem =~ s/\352$//
Truth table33%1/3
A and B
A= $class == 5B= $stem =~ s/\352$//
ABresult
0X0
100
111
249 3 $table = [ map "$stem$_", '', qw( û ê u u un ) ];
250 } else {
251 0 return;
252 }
253  
254 # Cadhinor verbs in -c- and -g-
255 12 ▶ if($class == 1 || $class == 4 || $class == 5) {
Branch: 2 branches
BranchTrueFalseTotal
if ($class == 1 or $class == 4 or $class == 5) { } 7 5 12
elsif ($class == 2 or $class == 3) { } 5 0 5
Condition100%6/6
$class == 1 or $class == 4 or $class == 5
l!l&&r!l&&!r
435
$class == 1 or $class == 4
l!l&&r!l&&!r
228
MC/DC100%3/3
$class == 1 or $class == 4 or $class == 5
$class == 1 $class == 4 $class == 5
Truth table100%4/4
A or B or C
A= $class == 1B= $class == 4C= $class == 5
ABCresult
1XX1
01X1
0011
0000
256 7 for(@{$table}[0,3,4,5]) {
257 28 ▶ if(exists $cadhctab->{$verb}) {
Branch: 2 branches
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhctab->{$verb}) { } 4 24 28
elsif (exists $Lingua::Zompist::Barakhinei::cadhgtab->{$verb}) { } 8 16 24
258 4 s/ch([auoâô]?n?)$/k$1/;
259 } elsif(exists $cadhgtab->{$verb}) {
260 8 s/ch([auoâô]?n?)$/g$1/;
261 }
262 }
263 7 for(@{$table}[1,2]) {
264 14 ▶ if(exists $cadhctab->{$verb}) {
Branch: 2 branches
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhctab->{$verb}) { } 2 12 14
elsif (exists $Lingua::Zompist::Barakhinei::cadhgtab->{$verb}) { } 4 8 12
265 2 s/k([eiêîû]n?)$/ch$1/;
266 } elsif(exists $cadhgtab->{$verb}) {
267 4 s/g([eiêîû]n?)$/ch$1/;
268 }
269 }
270 ▶ } elsif($class == 2 || $class == 3) {
Condition66%2/3
$class == 2 or $class == 3
l!l&&r!l&&!r
320
MC/DC0%0/2
$class == 2 or $class == 3
$class == 2 $class == 3
Truth table66%2/3
A or B
A= $class == 2B= $class == 3
ABresult
1X1
011
000
271 5 for(@{$table}[0]) {
272 5 ▶ if(exists $cadhctab->{$verb}) {
Branch: 2 branches
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhctab->{$verb}) { } 1 4 5
elsif (exists $Lingua::Zompist::Barakhinei::cadhgtab->{$verb}) { } 1 3 4
273 1 s/ch([auoâô]?n?)$/k$1/;
274 } elsif(exists $cadhgtab->{$verb}) {
275 1 s/ch([auoâô]?n?)$/g$1/;
276 }
277 }
278 5 for(@{$table}[1,2]) {
279 10 ▶ if(exists $cadhctab->{$verb}) {
Branch: 2 branches
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhctab->{$verb}) { } 2 8 10
elsif (exists $Lingua::Zompist::Barakhinei::cadhgtab->{$verb}) { } 2 6 8
280 2 s/k([eiêîû]n?)$/ch$1/;
281 } elsif(exists $cadhgtab->{$verb}) {
282 2 s/g([eiêîû]n?)$/ch$1/;
283 }
284 }
285 }
286  
287 12 for(@$table) {
288 72 s/shtu$/kchu/;
289 72 s/sht$/ch/;
290 72 s/g$/k/;
291 72 s/b$/p/;
292 }
293  
294 # spirantise -d -t -p in 4th and 5th conjugation
295 12 ▶ if(($class == 4 || $class == 5) && $verb =~ /$vow[dtp][êai]$/o) {
Branch: 1 branch
BranchTrueFalseTotal
if ($class == 4 || $class == 5 and $verb =~ /${vow}[dtp][\352ai]$/o) 1 11 12
Condition100%6/6
$class == 4 || $class == 5 and $verb =~ /${vow}[dtp][\352ai]$/o
!ll&&!rl&&r
741
$class == 4 or $class == 5
l!l&&r!l&&!r
237
MC/DC66%2/3
$class == 4 || $class == 5 and $verb =~ /${vow}[dtp][\352ai]$/o
$class == 4 $class == 5 $verb =~ /${vow}[dtp][\352ai]$/o
Truth table80%4/5
A or B and C
A= $class == 4B= $class == 5C= $verb =~ /${vow}[dtp][\352ai]$/o
ABCresult
00X0
1X00
0100
1X11
0111
296 1 for($table->[0]) {
297 1 s/d$/dh/;
298 1 s/t$/th/;
299 1 s/p$/f/;
300 }
301  
302 1 for(@{$table}[3,4,5]) {
303 3 s/d(un?|în)$/dh$1/;
304 3 s/t(un?|în)$/th$1/;
305 3 s/p(un?|în)$/v$1/;
306 }
307 }
308  
309 # front and back vowel alternations for Cadhinor verbs in -u-
310 12 ▶ if(exists $cadhutab->{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhutab->{$verb}) 2 10 12
311 2 for(@$table) {
312 12 s/i($cons+[aouâôû]?)$/o$1/;
313 12 s/u($cons+[êiî]n?)$/i$1/;
314 }
315 }
316  
317 12 return $table;
318 } # demeric
319  
320 11 my %scrifel = (
321 'epeza' => [ qw( ûzi ûzi epâ ûzu ûzê ûzîn ) ],
322 'eza' => [ qw( fuch fuch fâ fu fuê fûn ) ],
323 'kedhê' => [ qw( kedhi kedhi kiâ kedhu kedhê kedhîn ) ],
324 );
325  
326 15 ▶sub scrifel {
Subroutine scrifel: called CC=35 SCAR=37.9
Pod documented
327 15 my $verb = shift;
328 15 my $class = shift;
329 15 my $stem = $verb;
330 15 my $table;
331  
332 15 ▶ return $scrifel{$verb} if exists $scrifel{$verb};
Branch: 1 branch
BranchTrueFalseTotal
if exists $scrifel{$verb} 3 12 15
333  
334 12 ▶ if(! defined($class) && exists $classtab->{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}) 0 12 12
Condition33%1/3
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
!ll&&!rl&&r
1200
MC/DC0%0/2
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
not defined $class exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
Truth table33%1/3
not(A) and B
A= not defined $classB= exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
ABresult
0X0
100
111
335 0 $class = $classtab->{$verb};
336 }
337  
338 12 ▶ $class = 2 if !defined($class) && $verb =~ /a$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /a$/ 0 12 12
Condition33%1/3
not defined $class and $verb =~ /a$/
!ll&&!rl&&r
1200
MC/DC0%0/2
not defined $class and $verb =~ /a$/
not defined $class $verb =~ /a$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /a$/
ABresult
0X0
100
111
339 12 ▶ $class = 3 if !defined($class) && $verb =~ /ê$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /\352$/ 0 12 12
Condition33%1/3
not defined $class and $verb =~ /\352$/
!ll&&!rl&&r
1200
MC/DC0%0/2
not defined $class and $verb =~ /\352$/
not defined $class $verb =~ /\352$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /\352$/
ABresult
0X0
100
111
340 12 ▶ $class = 4 if !defined($class) && $verb =~ /i$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /i$/ 0 12 12
Condition33%1/3
not defined $class and $verb =~ /i$/
!ll&&!rl&&r
1200
MC/DC0%0/2
not defined $class and $verb =~ /i$/
not defined $class $verb =~ /i$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /i$/
ABresult
0X0
100
111
341 12 ▶ $class = 0 unless defined $class;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $class 0 12 12
342  
343 12 ▶ if($class == 1 && $stem =~ s/ê$//) {
Branch: 5 branches
BranchTrueFalseTotal
if ($class == 1 and $stem =~ s/\352$//) { } 4 8 12
elsif ($stem =~ s/a$//) { } 2 6 8
elsif ($class == 3 and $stem =~ s/\352$//) { } 2 4 6
elsif ($stem =~ s/i$//) { } 2 2 4
elsif ($class == 5 and $stem =~ s/\352$//) { } 2 0 2
Condition66%2/3
$class == 1 and $stem =~ s/\352$//
!ll&&!rl&&r
804
MC/DC50%1/2
$class == 1 and $stem =~ s/\352$//
$class == 1 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 1B= $stem =~ s/\352$//
ABresult
0X0
100
111
344 4 $table = [ map "$stem$_", qw( i î ), '', qw( ê ê în ) ];
345 } elsif($stem =~ s/a$//) {
346 2 $table = [ map "$stem$_", qw( i i â u ê în ) ];
347 ▶ } elsif($class == 3 && $stem =~ s/ê$//) {
Condition66%2/3
$class == 3 and $stem =~ s/\352$//
!ll&&!rl&&r
402
MC/DC50%1/2
$class == 3 and $stem =~ s/\352$//
$class == 3 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 3B= $stem =~ s/\352$//
ABresult
0X0
100
111
348 2 $table = [ map "$stem$_", qw( i i â u ê în ) ];
349 } elsif($stem =~ s/i$//) {
350 2 $table = [ map "$stem$_", qw( i ê â ê ê ên ) ];
351 ▶ } elsif($class == 5 && $stem =~ s/ê$//) {
Condition33%1/3
$class == 5 and $stem =~ s/\352$//
!ll&&!rl&&r
002
MC/DC0%0/2
$class == 5 and $stem =~ s/\352$//
$class == 5 $stem =~ s/\352$//
Truth table33%1/3
A and B
A= $class == 5B= $stem =~ s/\352$//
ABresult
0X0
100
111
352 2 $table = [ map "$stem$_", qw( i ê ), '', qw( ê ê ên ) ];
353 } else {
354 0 return;
355 }
356  
357 # Cadhinor verbs in -c- and -g-
358 12 ▶ if($class == 1 || $class == 2 || $class == 3) {
Branch: 2 branches
BranchTrueFalseTotal
if ($class == 1 or $class == 2 or $class == 3) { } 8 4 12
elsif ($class == 4) { } 2 2 4
Condition100%6/6
$class == 1 or $class == 2 or $class == 3
l!l&&r!l&&!r
624
$class == 1 or $class == 2
l!l&&r!l&&!r
426
MC/DC100%3/3
$class == 1 or $class == 2 or $class == 3
$class == 1 $class == 2 $class == 3
Truth table100%4/4
A or B or C
A= $class == 1B= $class == 2C= $class == 3
ABCresult
1XX1
01X1
0011
0000
359 8 for(@$table) {
360 48 ▶ if(exists $cadhctab->{$verb}) {
Branch: 2 branches
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhctab->{$verb}) { } 6 42 48
elsif (exists $Lingua::Zompist::Barakhinei::cadhgtab->{$verb}) { } 12 30 42
361 6 s/ch([êâu]?)$/k$1/;
362 6 s/k([iî]n?)$/ch$1/;
363 } elsif(exists $cadhgtab->{$verb}) {
364 12 s/ch([êâu]?)$/g$1/;
365 12 s/g([iî]n?)$/ch$1/;
366 }
367 }
368 } elsif($class == 4) {
369 2 for(@{$table}[2]) {
370 2 ▶ if(exists $cadhctab->{$verb}) {
Branch: 2 branches
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhctab->{$verb}) { } 1 1 2
elsif (exists $Lingua::Zompist::Barakhinei::cadhgtab->{$verb}) { } 0 1 1
371 1 s/ch(â)$/k$1/;
372 } elsif(exists $cadhgtab->{$verb}) {
373 0 s/ch(â)$/g$1/;
374 }
375 }
376 }
377  
378 12 for(@$table) {
379 72 s/shtu$/kchu/;
380 72 s/g$/k/;
381 72 s/b$/p/;
382 }
383  
384 # -sht --> -ch in III.sg for 1st conjugation
385 # spirantise -d -t -p in 1st conjugation
386 12 ▶ if($class == 1) {
Branch: 1 branch
BranchTrueFalseTotal
if ($class == 1) 4 8 12
387 4 for($table->[2]) {
388 4 s/sht$/ch/;
389  
390 4 ▶ if($verb =~ /$vow[dtp][êai]$/o) {
Branch: 1 branch
BranchTrueFalseTotal
if ($verb =~ /${vow}[dtp][\352ai]$/o) 1 3 4
391 1 s/d$/dh/;
392 1 s/t$/th/;
393 1 s/p$/f/;
394 }
395 }
396 }
397  
398 # front and back vowel alternations for Cadhinor verbs in -u-
399 12 ▶ if(exists $cadhutab->{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhutab->{$verb}) 1 11 12
400 1 for(@$table) {
401 6 s/i($cons+[uâ]?)$/o$1/;
402 6 s/u($cons+[êiî]n?)$/i$1/;
403 }
404 }
405  
406 12 return $table;
407 } # scrifel
408  
409 11 my %izhcrifel = (
410 'eza' => [ qw( firi firi furâ furu furê firiôn ) ],
411 );
412  
413 6 ▶sub izhcrifel {
Subroutine izhcrifel: called CC=19 SCAR=34.4
Pod documented
414 6 my $verb = shift;
415 6 my $class = shift;
416 6 my $stem = $verb;
417 6 my $table;
418  
419 6 ▶ return $izhcrifel{$verb} if exists $izhcrifel{$verb};
Branch: 1 branch
BranchTrueFalseTotal
if exists $izhcrifel{$verb} 1 5 6
420  
421 5 ▶ if(! defined($class) && exists $classtab->{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}) 0 5 5
Condition33%1/3
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
not defined $class exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
Truth table33%1/3
not(A) and B
A= not defined $classB= exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
ABresult
0X0
100
111
422 0 $class = $classtab->{$verb};
423 }
424  
425 5 ▶ $class = 2 if !defined($class) && $verb =~ /a$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /a$/ 0 5 5
Condition33%1/3
not defined $class and $verb =~ /a$/
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and $verb =~ /a$/
not defined $class $verb =~ /a$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /a$/
ABresult
0X0
100
111
426 5 ▶ $class = 3 if !defined($class) && $verb =~ /ê$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /\352$/ 0 5 5
Condition33%1/3
not defined $class and $verb =~ /\352$/
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and $verb =~ /\352$/
not defined $class $verb =~ /\352$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /\352$/
ABresult
0X0
100
111
427 5 ▶ $class = 4 if !defined($class) && $verb =~ /i$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /i$/ 0 5 5
Condition33%1/3
not defined $class and $verb =~ /i$/
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and $verb =~ /i$/
not defined $class $verb =~ /i$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /i$/
ABresult
0X0
100
111
428 5 ▶ $class = 0 unless defined $class;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $class 0 5 5
429  
430 5 ▶ if($class == 1 && $stem =~ s/ê$//) {
Branch: 5 branches
BranchTrueFalseTotal
if ($class == 1 and $stem =~ s/\352$//) { } 1 4 5
elsif ($stem =~ s/a$//) { } 1 3 4
elsif ($class == 3 and $stem =~ s/\352$//) { } 1 2 3
elsif ($stem =~ s/i$//) { } 1 1 2
elsif ($class == 5 and $stem =~ s/\352$//) { } 1 0 1
Condition66%2/3
$class == 1 and $stem =~ s/\352$//
!ll&&!rl&&r
401
MC/DC50%1/2
$class == 1 and $stem =~ s/\352$//
$class == 1 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 1B= $stem =~ s/\352$//
ABresult
0X0
100
111
431 1 $table = [ map "$stem$_", qw( ri rî êr rê rê rîn ) ];
432 } elsif($stem =~ s/a$//) {
433 1 $table = [ map "$stem$_", qw( ri ri râ ru rê rîn ) ];
434 ▶ } elsif($class == 3 && $stem =~ s/ê$//) {
Condition66%2/3
$class == 3 and $stem =~ s/\352$//
!ll&&!rl&&r
201
MC/DC50%1/2
$class == 3 and $stem =~ s/\352$//
$class == 3 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 3B= $stem =~ s/\352$//
ABresult
0X0
100
111
435 1 $table = [ map "$stem$_", qw( ri ri râ ru rê rîn ) ];
436 } elsif($stem =~ s/i$//) {
437 1 $table = [ map "$stem$_", qw( ri rê râ rê rê rên ) ];
438 ▶ } elsif($class == 5 && $stem =~ s/ê$//) {
Condition33%1/3
$class == 5 and $stem =~ s/\352$//
!ll&&!rl&&r
001
MC/DC0%0/2
$class == 5 and $stem =~ s/\352$//
$class == 5 $stem =~ s/\352$//
Truth table33%1/3
A and B
A= $class == 5B= $stem =~ s/\352$//
ABresult
0X0
100
111
439 1 $table = [ map "$stem$_", qw( ri rê êr rê rê rên ) ];
440 } else {
441 0 return;
442 }
443  
444 5 return $table;
445 } # izhcrifel
446  
447 11 my %budemeric = (
448 'eza' => [ qw( êshta êshtê êshtê êshta êshtu êshtôn ) ],
449 );
450  
451 6 ▶sub budemeric {
Subroutine budemeric: called CC=22 SCAR=35.3
Pod documented
452 6 my $verb = shift;
453 6 my $class = shift;
454 6 my $stem = $verb;
455 6 my $table;
456  
457 6 ▶ return $budemeric{$verb} if exists $budemeric{$verb};
Branch: 1 branch
BranchTrueFalseTotal
if exists $budemeric{$verb} 1 5 6
458  
459 5 ▶ return demeric($subjtab->{$verb}, $class) if exists $subjtab->{$verb};
Branch: 1 branch
BranchTrueFalseTotal
if exists $Lingua::Zompist::Barakhinei::subjtab->{$verb} 0 5 5
460  
461 5 ▶ if(! defined($class) && exists $classtab->{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}) 0 5 5
Condition33%1/3
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
not defined $class exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
Truth table33%1/3
not(A) and B
A= not defined $classB= exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
ABresult
0X0
100
111
462 0 $class = $classtab->{$verb};
463 }
464  
465 5 ▶ $class = 2 if !defined($class) && $verb =~ /a$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /a$/ 0 5 5
Condition33%1/3
not defined $class and $verb =~ /a$/
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and $verb =~ /a$/
not defined $class $verb =~ /a$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /a$/
ABresult
0X0
100
111
466 5 ▶ $class = 3 if !defined($class) && $verb =~ /ê$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /\352$/ 0 5 5
Condition33%1/3
not defined $class and $verb =~ /\352$/
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and $verb =~ /\352$/
not defined $class $verb =~ /\352$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /\352$/
ABresult
0X0
100
111
467 5 ▶ $class = 4 if !defined($class) && $verb =~ /i$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /i$/ 0 5 5
Condition33%1/3
not defined $class and $verb =~ /i$/
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and $verb =~ /i$/
not defined $class $verb =~ /i$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /i$/
ABresult
0X0
100
111
468 5 ▶ $class = 0 unless defined $class;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $class 0 5 5
469  
470 5 ▶ if($class == 1 && $stem =~ s/ê$/t/) {
Branch: 5 branches
BranchTrueFalseTotal
if ($class == 1 and $stem =~ s/\352$/t/) { } 1 4 5
elsif ($stem =~ s/a$/m/) { } 1 3 4
elsif ($class == 3 and $stem =~ s/\352$/m/) { } 1 2 3
elsif ($stem =~ s/i$/t/) { } 1 1 2
elsif ($class == 5 and $stem =~ s/\352$/t/) { } 1 0 1
Condition66%2/3
$class == 1 and $stem =~ s/\352$/t/
!ll&&!rl&&r
401
MC/DC50%1/2
$class == 1 and $stem =~ s/\352$/t/
$class == 1 $stem =~ s/\352$/t/
Truth table66%2/3
A and B
A= $class == 1B= $stem =~ s/\352$/t/
ABresult
0X0
100
111
471 1 $table = [ map "$stem$_", qw( a ê ê u u ôn ) ];
472 } elsif($stem =~ s/a$/m/) {
473 1 $table = [ map "$stem$_", qw( â ê ê a u ôn ) ];
474 ▶ } elsif($class == 3 && $stem =~ s/ê$/m/) {
Condition66%2/3
$class == 3 and $stem =~ s/\352$/m/
!ll&&!rl&&r
201
MC/DC50%1/2
$class == 3 and $stem =~ s/\352$/m/
$class == 3 $stem =~ s/\352$/m/
Truth table66%2/3
A and B
A= $class == 3B= $stem =~ s/\352$/m/
ABresult
0X0
100
111
475 1 $table = [ map "$stem$_", qw( â ê ê a u ên ) ];
476 } elsif($stem =~ s/i$/t/) {
477 1 $table = [ map "$stem$_", '', '', qw( i u u în ) ];
478 1 for(@$table) {
479 6 s/t$/ech/;
480 6 s/tu$/chu/;
481 6 s/t(ti|chu|tîn)$/$1/; # for beshti
482 }
483 ▶ } elsif($class == 5 && $stem =~ s/ê$/t/) {
Condition33%1/3
$class == 5 and $stem =~ s/\352$/t/
!ll&&!rl&&r
001
MC/DC0%0/2
$class == 5 and $stem =~ s/\352$/t/
$class == 5 $stem =~ s/\352$/t/
Truth table33%1/3
A and B
A= $class == 5B= $stem =~ s/\352$/t/
ABresult
0X0
100
111
484 1 $table = [ map "$stem$_", '', '', qw( i u u în ) ];
485 1 for(@$table) {
486 6 s/t$/ech/;
487 6 s/tu$/chu/;
488 }
489 } else {
490 0 return;
491 }
492  
493 5 return $table;
494 } # budemeric
495  
496  
497 11 my %buscrifel = (
498 'eza' => [ qw( êshka êshkê êshkê êshka êshku êshkôn ) ],
499 );
500  
501 6 ▶sub buscrifel {
Subroutine buscrifel: called CC=23 SCAR=36.0
Pod documented
502 6 my $verb = shift;
503 6 my $class = shift;
504 6 my $stem = $verb;
505 6 my $table;
506  
507 6 ▶ return $buscrifel{$verb} if exists $buscrifel{$verb};
Branch: 1 branch
BranchTrueFalseTotal
if exists $buscrifel{$verb} 1 5 6
508  
509 5 ▶ return scrifel($subjtab->{$verb}, $class) if exists $subjtab->{$verb};
Branch: 1 branch
BranchTrueFalseTotal
if exists $Lingua::Zompist::Barakhinei::subjtab->{$verb} 0 5 5
510  
511 5 ▶ if(! defined($class) && exists $classtab->{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}) 0 5 5
Condition33%1/3
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
not defined $class exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
Truth table33%1/3
not(A) and B
A= not defined $classB= exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
ABresult
0X0
100
111
512 0 $class = $classtab->{$verb};
513 }
514  
515 5 ▶ $class = 2 if !defined($class) && $verb =~ /a$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /a$/ 0 5 5
Condition33%1/3
not defined $class and $verb =~ /a$/
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and $verb =~ /a$/
not defined $class $verb =~ /a$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /a$/
ABresult
0X0
100
111
516 5 ▶ $class = 3 if !defined($class) && $verb =~ /ê$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /\352$/ 0 5 5
Condition33%1/3
not defined $class and $verb =~ /\352$/
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and $verb =~ /\352$/
not defined $class $verb =~ /\352$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /\352$/
ABresult
0X0
100
111
517 5 ▶ $class = 4 if !defined($class) && $verb =~ /i$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /i$/ 0 5 5
Condition33%1/3
not defined $class and $verb =~ /i$/
!ll&&!rl&&r
500
MC/DC0%0/2
not defined $class and $verb =~ /i$/
not defined $class $verb =~ /i$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /i$/
ABresult
0X0
100
111
518 5 ▶ $class = 0 unless defined $class;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $class 0 5 5
519  
520 5 ▶ if($class == 1 && $stem =~ s/ê$/k/) {
Branch: 5 branches
BranchTrueFalseTotal
if ($class == 1 and $stem =~ s/\352$/k/) { } 1 4 5
elsif ($stem =~ s/a$/n/) { } 1 3 4
elsif ($class == 3 and $stem =~ s/\352$/n/) { } 1 2 3
elsif ($stem =~ s/i$/r/) { } 1 1 2
elsif ($class == 5 and $stem =~ s/\352$/r/) { } 1 0 1
Condition66%2/3
$class == 1 and $stem =~ s/\352$/k/
!ll&&!rl&&r
401
MC/DC50%1/2
$class == 1 and $stem =~ s/\352$/k/
$class == 1 $stem =~ s/\352$/k/
Truth table66%2/3
A and B
A= $class == 1B= $stem =~ s/\352$/k/
ABresult
0X0
100
111
521 1 $table = [ map "$stem$_", qw( a ê ê u u ôn ) ];
522 1 for(@$table) {
523 6 s/kê$/chê/;
524 }
525 } elsif($stem =~ s/a$/n/) {
526 1 $table = [ map "$stem$_", qw( â ê ê a u ôn ) ];
527 ▶ } elsif($class == 3 && $stem =~ s/ê$/n/) {
Condition66%2/3
$class == 3 and $stem =~ s/\352$/n/
!ll&&!rl&&r
201
MC/DC50%1/2
$class == 3 and $stem =~ s/\352$/n/
$class == 3 $stem =~ s/\352$/n/
Truth table66%2/3
A and B
A= $class == 3B= $stem =~ s/\352$/n/
ABresult
0X0
100
111
528 1 $table = [ map "$stem$_", qw( â ê ê a u ên ) ];
529 } elsif($stem =~ s/i$/r/) {
530 1 $table = [ map "$stem$_", '', '', qw( i u u în ) ];
531 1 for(@$table) {
532 6 s/r$/ir/;
533 }
534 ▶ } elsif($class == 5 && $stem =~ s/ê$/r/) {
Condition33%1/3
$class == 5 and $stem =~ s/\352$/r/
!ll&&!rl&&r
001
MC/DC0%0/2
$class == 5 and $stem =~ s/\352$/r/
$class == 5 $stem =~ s/\352$/r/
Truth table33%1/3
A and B
A= $class == 5B= $stem =~ s/\352$/r/
ABresult
0X0
100
111
535 1 $table = [ map "$stem$_", '', '', qw( i u u în ) ];
536 1 for(@$table) {
537 6 s/r$/ir/;
538 }
539 } else {
540 0 return;
541 }
542  
543 5 return $table;
544 } # bucrifel
545  
546  
547 11 my %befel = (
548 );
549  
550 6 ▶sub befel {
Subroutine befel: called CC=26 SCAR=37.1
Pod documented
551 6 my $verb = shift;
552 6 my $class = shift;
553 6 my $stem = $verb;
554 6 my $table;
555  
556 6 ▶ return $befel{$verb} if exists $befel{$verb};
Branch: 1 branch
BranchTrueFalseTotal
if exists $befel{$verb} 0 6 6
557  
558 6 ▶ if(! defined($class) && exists $classtab->{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}) 0 6 6
Condition33%1/3
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
!ll&&!rl&&r
600
MC/DC0%0/2
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
not defined $class exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
Truth table33%1/3
not(A) and B
A= not defined $classB= exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
ABresult
0X0
100
111
559 0 $class = $classtab->{$verb};
560 }
561  
562 6 ▶ $class = 2 if !defined($class) && $verb =~ /a$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /a$/ 0 6 6
Condition33%1/3
not defined $class and $verb =~ /a$/
!ll&&!rl&&r
600
MC/DC0%0/2
not defined $class and $verb =~ /a$/
not defined $class $verb =~ /a$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /a$/
ABresult
0X0
100
111
563 6 ▶ $class = 3 if !defined($class) && $verb =~ /ê$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /\352$/ 0 6 6
Condition33%1/3
not defined $class and $verb =~ /\352$/
!ll&&!rl&&r
600
MC/DC0%0/2
not defined $class and $verb =~ /\352$/
not defined $class $verb =~ /\352$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /\352$/
ABresult
0X0
100
111
564 6 ▶ $class = 4 if !defined($class) && $verb =~ /i$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /i$/ 0 6 6
Condition33%1/3
not defined $class and $verb =~ /i$/
!ll&&!rl&&r
600
MC/DC0%0/2
not defined $class and $verb =~ /i$/
not defined $class $verb =~ /i$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /i$/
ABresult
0X0
100
111
565 6 ▶ $class = 0 unless defined $class;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $class 0 6 6
566  
567 6 ▶ if($class == 1 && $stem =~ s/ê$//) {
Branch: 5 branches
BranchTrueFalseTotal
if ($class == 1 and $stem =~ s/\352$//) { } 1 5 6
elsif ($stem =~ s/a$//) { } 2 3 5
elsif ($class == 3 and $stem =~ s/\352$//) { } 1 2 3
elsif ($stem =~ s/i$//) { } 1 1 2
elsif ($class == 5 and $stem =~ s/\352$//) { } 1 0 1
Condition66%2/3
$class == 1 and $stem =~ s/\352$//
!ll&&!rl&&r
501
MC/DC50%1/2
$class == 1 and $stem =~ s/\352$//
$class == 1 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 1B= $stem =~ s/\352$//
ABresult
0X0
100
111
568 1 $table = [ map "$stem$_", '', '', 'a', '', 'êl', 'an' ];
569 } elsif($stem =~ s/a$//) {
570 2 $table = [ map "$stem$_", '', '', 'a', '', 'el', 'an' ];
571 ▶ } elsif($class == 3 && $stem =~ s/ê$//) {
Condition66%2/3
$class == 3 and $stem =~ s/\352$//
!ll&&!rl&&r
201
MC/DC50%1/2
$class == 3 and $stem =~ s/\352$//
$class == 3 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 3B= $stem =~ s/\352$//
ABresult
0X0
100
111
572 1 $table = [ map "$stem$_", '', '', 'a', '', 'el', 'an' ];
573 } elsif($stem =~ s/i$//) {
574 1 $table = [ map "$stem$_", '', '', 'a', '', 'u', 'an' ];
575 ▶ } elsif($class == 5 && $stem =~ s/ê$//) {
Condition33%1/3
$class == 5 and $stem =~ s/\352$//
!ll&&!rl&&r
001
MC/DC0%0/2
$class == 5 and $stem =~ s/\352$//
$class == 5 $stem =~ s/\352$//
Truth table33%1/3
A and B
A= $class == 5B= $stem =~ s/\352$//
ABresult
0X0
100
111
576 1 $table = [ map "$stem$_", '', '', 'a', '', 'u', 'an' ];
577 } else {
578 0 return;
579 }
580  
581 6 for(@$table) {
582 # Cadhinor verbs in -c- and -g-
583 36 ▶ if(exists $cadhctab->{$verb}) {
Branch: 2 branches
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhctab->{$verb}) { } 0 36 36
elsif (exists $Lingua::Zompist::Barakhinei::cadhgtab->{$verb}) { } 0 36 36
584 0 s/k([eiêîû]?)$/ch/;
585 } elsif(exists $cadhgtab->{$verb}) {
586 0 s/g([eiêîû]?)$/ch/;
587 }
588  
589 36 s/shtu$/kchu/;
590 36 s/sht(an?)$/kch$1/;
591 36 s/sht$/ch/;
592 36 s/g$/k/;
593 36 s/b$/p/;
594 }
595  
596 # front and back vowel alternation in II.sg of 2nd and 3rd conjugation
597 6 ▶ if($verb =~ /a$/ || $class == 3) {
Branch: 1 branch
BranchTrueFalseTotal
if ($verb =~ /a$/ or $class == 3) 3 3 6
Condition100%3/3
$verb =~ /a$/ or $class == 3
l!l&&r!l&&!r
213
MC/DC100%2/2
$verb =~ /a$/ or $class == 3
$verb =~ /a$/ $class == 3
Truth table100%3/3
A or B
A= $verb =~ /a$/B= $class == 3
ABresult
1X1
011
000
598 3 for($table->[1]) {
599 3 s/u($cons+)$/i$1/;
600 }
601 }
602  
603 # front and back vowel alternations in III.sg + III.pl
604 # and spirantisation
605 6 for(@{$table}[2,5]) {
606 12 s/([dtp])(an?)$/$spir{$1}$2/;
607 12 s/u($cons+an?)$/i$1/;
608 }
609  
610 # I.sg and I.pl don't exist
611 6 @{$table}[0,3] = (undef, undef);
612  
613 6 return $table;
614 } # befel
615  
616  
617 11 my %part = (
618 );
619  
620 # Participles
621 10 ▶sub part {
Subroutine part: called CC=23 SCAR=39.4
Pod documented
622 10 my $verb = shift;
623 10 my $class = shift;
624 10 my $stem = $verb;
625  
626 10 my($present, $past);
627  
628 10 ▶ if(exists $part{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $part{$verb}) { } 0 10 10
629 0 ($present, $past) = @{ $part{$verb} };
630 } else {
631 10 ▶ if(! defined($class) && exists $classtab->{$verb}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}) 0 10 10
Condition33%1/3
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
!ll&&!rl&&r
1000
MC/DC0%0/2
not defined $class and exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
not defined $class exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
Truth table33%1/3
not(A) and B
A= not defined $classB= exists $Lingua::Zompist::Barakhinei::classtab->{$verb}
ABresult
0X0
100
111
632 0 $class = $classtab->{$verb};
633 }
634  
635 10 ▶ $class = 2 if !defined($class) && $verb =~ /a$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /a$/ 0 10 10
Condition33%1/3
not defined $class and $verb =~ /a$/
!ll&&!rl&&r
1000
MC/DC0%0/2
not defined $class and $verb =~ /a$/
not defined $class $verb =~ /a$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /a$/
ABresult
0X0
100
111
636 10 ▶ $class = 3 if !defined($class) && $verb =~ /ê$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /\352$/ 0 10 10
Condition33%1/3
not defined $class and $verb =~ /\352$/
!ll&&!rl&&r
1000
MC/DC0%0/2
not defined $class and $verb =~ /\352$/
not defined $class $verb =~ /\352$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /\352$/
ABresult
0X0
100
111
637 10 ▶ $class = 4 if !defined($class) && $verb =~ /i$/;
Branch: 1 branch
BranchTrueFalseTotal
if not defined $class and $verb =~ /i$/ 0 10 10
Condition33%1/3
not defined $class and $verb =~ /i$/
!ll&&!rl&&r
1000
MC/DC0%0/2
not defined $class and $verb =~ /i$/
not defined $class $verb =~ /i$/
Truth table33%1/3
not(A) and B
A= not defined $classB= $verb =~ /i$/
ABresult
0X0
100
111
638 10 ▶ $class = 0 unless defined $class;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $class 0 10 10
639  
640 10 ▶ if($class == 1 && $stem =~ s/ê$//) {
Branch: 5 branches
BranchTrueFalseTotal
if ($class == 1 and $stem =~ s/\352$//) { } 2 8 10
elsif ($stem =~ s/a$//) { } 2 6 8
elsif ($class == 3 and $stem =~ s/\352$//) { } 2 4 6
elsif ($stem =~ s/i$//) { } 2 2 4
elsif ($class == 5 and $stem =~ s/\352$//) { } 2 0 2
Condition66%2/3
$class == 1 and $stem =~ s/\352$//
!ll&&!rl&&r
802
MC/DC50%1/2
$class == 1 and $stem =~ s/\352$//
$class == 1 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 1B= $stem =~ s/\352$//
ABresult
0X0
100
111
641 2 ($past, $present) = map "$stem$_", 'êl', 'il';
642 } elsif($stem =~ s/a$//) {
643 2 ($past, $present) = map "$stem$_", 'u', 'ê';
644 ▶ } elsif($class == 3 && $stem =~ s/ê$//) {
Condition66%2/3
$class == 3 and $stem =~ s/\352$//
!ll&&!rl&&r
402
MC/DC50%1/2
$class == 3 and $stem =~ s/\352$//
$class == 3 $stem =~ s/\352$//
Truth table66%2/3
A and B
A= $class == 3B= $stem =~ s/\352$//
ABresult
0X0
100
111
645 2 ($past, $present) = map "$stem$_", 'u', 'ê';
646 } elsif($stem =~ s/i$//) {
647 2 ($past, $present) = map "$stem$_", 'u', 'i';
648 ▶ } elsif($class == 5 && $stem =~ s/ê$//) {
Condition33%1/3
$class == 5 and $stem =~ s/\352$//
!ll&&!rl&&r
002
MC/DC0%0/2
$class == 5 and $stem =~ s/\352$//
$class == 5 $stem =~ s/\352$//
Truth table33%1/3
A and B
A= $class == 5B= $stem =~ s/\352$//
ABresult
0X0
100
111
649 2 ($past, $present) = map "$stem$_", 'êl', 'ê';
650 } else {
651 0 return;
652 }
653 }
654  
655 10 for($past, $present) {
656 # Cadhinor verbs in -c- and -g-
657 20 ▶ if(exists $cadhctab->{$verb}) {
Branch: 2 branches
BranchTrueFalseTotal
if (exists $Lingua::Zompist::Barakhinei::cadhctab->{$verb}) { } 0 20 20
elsif (exists $Lingua::Zompist::Barakhinei::cadhgtab->{$verb}) { } 0 20 20
658 0 s/ch([auoâô])$/k/;
659 0 s/k([eiêîû])$/ch/;
660 } elsif(exists $cadhgtab->{$verb}) {
661 0 s/ch([auoâô]?)$/g/;
662 0 s/g([eiêîû])$/ch/;
663 }
664  
665 20 s/shtu$/kchu/;
666 }
667  
668 10 ▶ return wantarray ? ($present, $past) : [ $present, $past ];
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 5 5 10
669 }
670  
671  
672  
673 11 $gendertab = {
674 'âshta' => 'masc',
675 'eli' => 'masc',
676 'lônd' => 'masc',
677  
678 'kal' => 'neut',
679 'manu' => 'neut',
680 'nôshti' => 'neut',
681 'shkor' => 'neut',
682 'shpâ' => 'neut',
683  
684 'chir' => 'fem',
685 'elorê' => 'fem',
686 'kabrâ' => 'fem',
687 'medhi' => 'fem',
688 'nor' => 'fem',
689  
690 'achel' => 'fem',
691 'acher' => 'masc',
692 'Achirê' => 'fem',
693 'âdh' => 'masc',
694 'âdhechu' => 'masc',
695 'adipa' => 'masc',
696 'adlelek' => 'fem',
697 'adlelu' => 'fem',
698 'air' => 'fem',
699 }; # $gendertab
700  
701 11 $pluraltab = {
702 'âshta' => 'âshtâ',
703 'eli' => 'eliri',
704 'lônd' => 'lôndi',
705  
706 'kal' => 'kalo',
707 'manu' => 'mani',
708 'nôshti' => 'nôkchu',
709 'shkor' => 'shkoru',
710 'shpâ' => 'shpao',
711  
712 'chir' => 'chirâ',
713 'elorê' => 'eloriê',
714 'kabrâ' => 'kabrachâ',
715 'medhi' => 'medhiê',
716 'nor' => 'norê',
717  
718 'âdhechu' => 'âdhechuni',
719 }; # $pluraltab
720  
721 64 ▶sub noun {
Subroutine noun: called CC=91 SCAR=74.6
Pod documented
722 64 my $noun = shift;
723 64 my $gender = shift;
724 64 my $plural = shift;
725 64 my $table;
726  
727 # is it a pronoun?
728 # nom acc dat gen nom acc/dat gen
729 64 ▶ return [ qw( sû sêth sû (eri) ta tâ (tandê) ) ] if $noun eq 'sû';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "s\373" 1 63 64
730 63 ▶ return [ qw( lê êk lê (leri) mukh mî (mundê) ) ] if $noun eq 'lê';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "l\352" 1 62 63
731 62 ▶ return [ qw( ât âtô âta âti kâ kâ (kandê) ) ] if $noun eq 'ât';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "\342t" 1 61 62
732 61 ▶ return [ qw( tot tô tota toti kâ kâ (kandê) ) ] if $noun eq 'tot';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "tot" 1 60 61
733 60 ▶ return [ qw( kêt kêtô kêta kêti ), (undef) x 3 ] if $noun eq 'kêt';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "k\352t" 1 59 60
734 59 ▶ return [ qw( ta tâ tao (tandê) ), (undef) x 3 ] if $noun eq 'ta';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "ta" 1 58 59
735 58 ▶ return [ qw( mukh mî mî (mundê) ), (undef) x 3 ] if $noun eq 'mukh';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "mukh" 1 57 58
736 57 ▶ return [ qw( kâ kâ kâ (kandê) ), (undef) x 3 ] if $noun eq 'kâ';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "k\342" 1 56 57
737 56 ▶ return [ '', qw( zêth zeu zei ), '', qw( zaa zai ) ] if $noun eq 'zê';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "z\352" 1 55 56
738 55 ▶ return [ '', qw( zaa zau zai ), (undef) x 3 ] if $noun eq 'za';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "za" 1 54 55
739  
740 # otherwise it's a noun.
741  
742 # irregular oblique stem
743 54 ▶ return [ qw( pû pû pea peo pei peî peich ) ] if $noun eq 'pû';
Branch: 1 branch
BranchTrueFalseTotal
if $noun eq "p\373" 0 54 54
744  
745 54 ▶ if(!defined($gender) && exists $gendertab->{$noun}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $gender and exists $Lingua::Zompist::Barakhinei::gendertab->{$noun}) 26 28 54
Condition66%2/3
not defined $gender and exists $Lingua::Zompist::Barakhinei::gendertab->{$noun}
!ll&&!rl&&r
28026
MC/DC50%1/2
not defined $gender and exists $Lingua::Zompist::Barakhinei::gendertab->{$noun}
not defined $gender exists $Lingua::Zompist::Barakhinei::gendertab->{$noun}
Truth table66%2/3
not(A) and B
A= not defined $genderB= exists $Lingua::Zompist::Barakhinei::gendertab->{$noun}
ABresult
0X0
100
111
746 26 $gender = $gendertab->{$noun};
747 }
748  
749 54 ▶ if(!defined($gender)) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $gender) 0 54 54
750 # try to guess based on the ending
751 0 ▶ if($noun =~ /a$/) {
Branch: 7 branches
BranchTrueFalseTotal
if ($noun =~ /a$/) { } 0 0 0
elsif ($noun =~ /\352$/) { } 0 0 0
elsif ($noun =~ /$consend/o and defined $plural and $plural =~ /i$/) { } 0 0 0
elsif ($noun =~ /(?:$cons|i)$/o and defined $plural and $plural =~ /[ou]$/) { } 0 0 0
elsif ($noun =~ /\342$/ and defined $plural and $plural =~ /ao$/) { } 0 0 0
elsif ($noun =~ /(?:$cons|i)$/o and defined $plural and $plural =~ /[\342\352]$/) { } 0 0 0
elsif ($noun =~ /\342$/ and defined $plural and $plural =~ /ach$/) { } 0 0 0
752 0 $gender = 'masc';
753 } elsif($noun =~ /ê$/) {
754 0 $gender = 'fem';
755 ▶ } elsif($noun =~ /$consend/o && defined $plural && $plural =~ /i$/) {
Condition0%0/6
$noun =~ /$consend/o and defined $plural and $plural =~ /i$/
!ll&&!rl&&r
000
$noun =~ /$consend/o and defined $plural
!ll&&!rl&&r
000
MC/DC0%0/3
$noun =~ /$consend/o and defined $plural and $plural =~ /i$/
$noun =~ /$consend/o defined $plural $plural =~ /i$/
Truth table0%0/4
A and B and C
A= $noun =~ /$consend/oB= defined $pluralC= $plural =~ /i$/
ABCresult
0XX0
10X0
1100
1111
756 0 $gender = 'masc'; # can't detect anisosyllabic nouns as they
757 # could be neuter
758 ▶ } elsif($noun =~ /(?:$cons|i)$/o && defined $plural && $plural =~ /[ou]$/) {
Condition0%0/6
$noun =~ /(?:$cons|i)$/o and defined $plural and $plural =~ /[ou]$/
!ll&&!rl&&r
000
$noun =~ /(?:$cons|i)$/o and defined $plural
!ll&&!rl&&r
000
MC/DC0%0/3
$noun =~ /(?:$cons|i)$/o and defined $plural and $plural =~ /[ou]$/
$noun =~ /(?:$cons|i)$/o defined $plural $plural =~ /[ou]$/
Truth table0%0/4
A and B and C
A= $noun =~ /(?:$cons|i)$/oB= defined $pluralC= $plural =~ /[ou]$/
ABCresult
0XX0
10X0
1100
1111
759 0 $gender = 'neut';
760 ▶ } elsif($noun =~ /â$/ && defined $plural && $plural =~ /ao$/) {
Condition0%0/6
$noun =~ /\342$/ and defined $plural and $plural =~ /ao$/
!ll&&!rl&&r
000
$noun =~ /\342$/ and defined $plural
!ll&&!rl&&r
000
MC/DC0%0/3
$noun =~ /\342$/ and defined $plural and $plural =~ /ao$/
$noun =~ /\342$/ defined $plural $plural =~ /ao$/
Truth table0%0/4
A and B and C
A= $noun =~ /\342$/B= defined $pluralC= $plural =~ /ao$/
ABCresult
0XX0
10X0
1100
1111
761 0 $gender = 'neut';
762 ▶ } elsif($noun =~ /(?:$cons|i)$/o && defined $plural && $plural =~ /[âê]$/) {
Condition0%0/6
$noun =~ /(?:$cons|i)$/o and defined $plural and $plural =~ /[\342\352]$/
!ll&&!rl&&r
000
$noun =~ /(?:$cons|i)$/o and defined $plural
!ll&&!rl&&r
000
MC/DC0%0/3
$noun =~ /(?:$cons|i)$/o and defined $plural and $plural =~ /[\342\352]$/
$noun =~ /(?:$cons|i)$/o defined $plural $plural =~ /[\342\352]$/
Truth table0%0/4
A and B and C
A= $noun =~ /(?:$cons|i)$/oB= defined $pluralC= $plural =~ /[\342\352]$/
ABCresult
0XX0
10X0
1100
1111
763 0 $gender = 'fem';
764 ▶ } elsif($noun =~ /â$/ && defined $plural && $plural =~ /ach$/) {
Condition0%0/6
$noun =~ /\342$/ and defined $plural and $plural =~ /ach$/
!ll&&!rl&&r
000
$noun =~ /\342$/ and defined $plural
!ll&&!rl&&r
000
MC/DC0%0/3
$noun =~ /\342$/ and defined $plural and $plural =~ /ach$/
$noun =~ /\342$/ defined $plural $plural =~ /ach$/
Truth table0%0/4
A and B and C
A= $noun =~ /\342$/B= defined $pluralC= $plural =~ /ach$/
ABCresult
0XX0
10X0
1100
1111
765 0 $gender = 'fem';
766 } else {
767 0 return;
768 }
769 }
770  
771 54 ▶ if(!defined($plural) && exists $pluraltab->{$noun}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $plural and exists $Lingua::Zompist::Barakhinei::pluraltab->{$noun}) 26 28 54
Condition66%2/3
not defined $plural and exists $Lingua::Zompist::Barakhinei::pluraltab->{$noun}
!ll&&!rl&&r
28026
MC/DC50%1/2
not defined $plural and exists $Lingua::Zompist::Barakhinei::pluraltab->{$noun}
not defined $plural exists $Lingua::Zompist::Barakhinei::pluraltab->{$noun}
Truth table66%2/3
not(A) and B
A= not defined $pluralB= exists $Lingua::Zompist::Barakhinei::pluraltab->{$noun}
ABresult
0X0
100
111
772 26 $plural = $pluraltab->{$noun};
773 }
774  
775 54 ▶ if(!defined($plural)) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $plural) 0 54 54
776 # try to guess based on the ending
777 0 ▶ if($noun =~ /$consend/o && $gender eq 'masc') {
Branch: 12 branches
BranchTrueFalseTotal
if ($noun =~ /$consend/o and $gender eq 'masc') { } 0 0 0
elsif ($noun =~ /a$/ and $gender eq 'masc') { } 0 0 0
elsif ($noun =~ /u$/ and $gender eq 'masc') { } 0 0 0
elsif ($noun =~ /$consend/o and $gender eq 'neut') { } 0 0 0
elsif ($noun =~ /i$/ and $gender eq 'neut') { } 0 0 0
elsif ($noun =~ /u$/ and $gender eq 'neut') { } 0 0 0
elsif ($noun =~ /\342$/ and $gender eq 'neut') { } 0 0 0
elsif ($noun =~ /$consend/o and $gender eq 'fem') { } 0 0 0
elsif ($noun =~ /u$/ and $gender eq 'fem') { } 0 0 0
elsif ($noun =~ /i$/ and $gender eq 'fem') { } 0 0 0
elsif ($noun =~ /\352$/ and $gender eq 'fem') { } 0 0 0
elsif ($noun =~ /\342$/ and $gender eq 'fem') { } 0 0 0
Condition0%0/3
$noun =~ /$consend/o and $gender eq "masc"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /$consend/o and $gender eq "masc"
$noun =~ /$consend/o $gender eq "masc"
Truth table0%0/3
A and B
A= $noun =~ /$consend/oB= $gender eq "masc"
ABresult
0X0
100
111
778 0 $plural = $noun . 'i'; # assume isosyllabic
779 ▶ } elsif($noun =~ /a$/ && $gender eq 'masc') {
Condition0%0/3
$noun =~ /a$/ and $gender eq "masc"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /a$/ and $gender eq "masc"
$noun =~ /a$/ $gender eq "masc"
Truth table0%0/3
A and B
A= $noun =~ /a$/B= $gender eq "masc"
ABresult
0X0
100
111
780 0 ($plural = $noun) =~ s/a$/â/;
781 ▶ } elsif($noun =~ /u$/ && $gender eq 'masc') {
Condition0%0/3
$noun =~ /u$/ and $gender eq "masc"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /u$/ and $gender eq "masc"
$noun =~ /u$/ $gender eq "masc"
Truth table0%0/3
A and B
A= $noun =~ /u$/B= $gender eq "masc"
ABresult
0X0
100
111
782 0 $plural = $noun . 'li'; # assume from -ul
783 ▶ } elsif($noun =~ /$consend/o && $gender eq 'neut') {
Condition0%0/3
$noun =~ /$consend/o and $gender eq "neut"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /$consend/o and $gender eq "neut"
$noun =~ /$consend/o $gender eq "neut"
Truth table0%0/3
A and B
A= $noun =~ /$consend/oB= $gender eq "neut"
ABresult
0X0
100
111
784 0 $plural = $noun . 'o'; # more than twice as comman as -u
785 ▶ } elsif($noun =~ /i$/ && $gender eq 'neut') {
Condition0%0/3
$noun =~ /i$/ and $gender eq "neut"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /i$/ and $gender eq "neut"
$noun =~ /i$/ $gender eq "neut"
Truth table0%0/3
A and B
A= $noun =~ /i$/B= $gender eq "neut"
ABresult
0X0
100
111
786 0 ($plural = $noun) =~ s/i$/u/;
787 ▶ } elsif($noun =~ /u$/ && $gender eq 'neut') {
Condition0%0/3
$noun =~ /u$/ and $gender eq "neut"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /u$/ and $gender eq "neut"
$noun =~ /u$/ $gender eq "neut"
Truth table0%0/3
A and B
A= $noun =~ /u$/B= $gender eq "neut"
ABresult
0X0
100
111
788 0 ($plural = $noun) =~ s/u$/i/;
789 ▶ } elsif($noun =~ /â$/ && $gender eq 'neut') {
Condition0%0/3
$noun =~ /\342$/ and $gender eq "neut"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /\342$/ and $gender eq "neut"
$noun =~ /\342$/ $gender eq "neut"
Truth table0%0/3
A and B
A= $noun =~ /\342$/B= $gender eq "neut"
ABresult
0X0
100
111
790 0 ($plural = $noun) =~ s/â$/ao/;
791 ▶ } elsif($noun =~ /$consend/o && $gender eq 'fem') {
Condition0%0/3
$noun =~ /$consend/o and $gender eq "fem"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /$consend/o and $gender eq "fem"
$noun =~ /$consend/o $gender eq "fem"
Truth table0%0/3
A and B
A= $noun =~ /$consend/oB= $gender eq "fem"
ABresult
0X0
100
111
792 0 $plural = $noun . 'â'; # "very common"
793 ▶ } elsif($noun =~ /u$/ && $gender eq 'fem') {
Condition0%0/3
$noun =~ /u$/ and $gender eq "fem"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /u$/ and $gender eq "fem"
$noun =~ /u$/ $gender eq "fem"
Truth table0%0/3
A and B
A= $noun =~ /u$/B= $gender eq "fem"
ABresult
0X0
100
111
794 0 $plural = $noun . 'lâ'; # assume from -ul
795 ▶ } elsif($noun =~ /i$/ && $gender eq 'fem') {
Condition0%0/3
$noun =~ /i$/ and $gender eq "fem"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /i$/ and $gender eq "fem"
$noun =~ /i$/ $gender eq "fem"
Truth table0%0/3
A and B
A= $noun =~ /i$/B= $gender eq "fem"
ABresult
0X0
100
111
796 0 $plural = $noun . 'ê';
797 ▶ } elsif($noun =~ /ê$/ && $gender eq 'fem') {
Condition0%0/3
$noun =~ /\352$/ and $gender eq "fem"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /\352$/ and $gender eq "fem"
$noun =~ /\352$/ $gender eq "fem"
Truth table0%0/3
A and B
A= $noun =~ /\352$/B= $gender eq "fem"
ABresult
0X0
100
111
798 0 ($plural = $noun) =~ s/ê/iê/;
799 ▶ } elsif($noun =~ /â$/ && $gender eq 'fem') {
Condition0%0/3
$noun =~ /\342$/ and $gender eq "fem"
!ll&&!rl&&r
000
MC/DC0%0/2
$noun =~ /\342$/ and $gender eq "fem"
$noun =~ /\342$/ $gender eq "fem"
Truth table0%0/3
A and B
A= $noun =~ /\342$/B= $gender eq "fem"
ABresult
0X0
100
111
800 0 ($plural = $noun) =~ s/â/achâ/;
801 } else {
802 0 return;
803 }
804 }
805  
806 54 my $sgstem = $noun;
807 54 my $plstem = $plural;
808  
809 54 ▶ if($gender eq 'masc') {
Branch: 3 branches
BranchTrueFalseTotal
if ($gender eq 'masc') { } 14 40 54
elsif ($gender eq 'neut') { } 20 20 40
elsif ($gender eq 'fem') { } 20 0 20
810 14 ▶ if($sgstem =~ /u$/ && $plstem =~ s/li$//) {
Branch: 3 branches
BranchTrueFalseTotal
if ($sgstem =~ /u$/ and $plstem =~ s/li$//) { } 0 14 14
elsif ($plstem =~ s/i$//) { } 10 4 14
elsif ($sgstem =~ s/a$// and $plstem =~ s/\342$//) { } 4 0 4
Condition33%1/3
$sgstem =~ /u$/ and $plstem =~ s/li$//
!ll&&!rl&&r
1400
MC/DC0%0/2
$sgstem =~ /u$/ and $plstem =~ s/li$//
$sgstem =~ /u$/ $plstem =~ s/li$//
Truth table33%1/3
A and B
A= $sgstem =~ /u$/B= $plstem =~ s/li$//
ABresult
0X0
100
111
811 0 $table = [ map("$sgstem$_", '', '', 'la', 'lo'),
812 map("$plstem$_", 'li', 'lî', 'lich') ];
813 } elsif($plstem =~ s/i$//) {
814 10 $table = [ map("$sgstem$_", '', '', 'a', 'o'),
815 map("$plstem$_", 'i', 'î', 'ich') ];
816 ▶ } elsif($sgstem =~ s/a$// && $plstem =~ s/â$//) {
Condition33%1/3
$sgstem =~ s/a$// and $plstem =~ s/\342$//
!ll&&!rl&&r
004
MC/DC0%0/2
$sgstem =~ s/a$// and $plstem =~ s/\342$//
$sgstem =~ s/a$// $plstem =~ s/\342$//
Truth table33%1/3
A and B
A= $sgstem =~ s/a$//B= $plstem =~ s/\342$//
ABresult
0X0
100
111
817 4 $table = [ map("$sgstem$_", 'a', '', 'a', 'o'),
818 map("$plstem$_", 'â', 'î', 'ach') ];
819 } else {
820 0 return;
821 }
822 } elsif($gender eq 'neut') {
823 20 ▶ if($sgstem =~ /$consend/o && $plstem =~ s/o$//) {
Branch: 5 branches
BranchTrueFalseTotal
if ($sgstem =~ /$consend/o and $plstem =~ s/o$//) { } 4 16 20
elsif ($sgstem =~ /$consend/o and $plstem =~ s/u$//) { } 4 12 16
elsif ($sgstem =~ s/i$// and $plstem =~ s/u$//) { } 4 8 12
elsif ($sgstem =~ s/u$// and $plstem =~ s/i$//) { } 4 4 8
elsif ($sgstem =~ s/\342$// and $plstem =~ s/ao$//) { } 4 0 4
Condition100%3/3
$sgstem =~ /$consend/o and $plstem =~ s/o$//
!ll&&!rl&&r
1244
MC/DC100%2/2
$sgstem =~ /$consend/o and $plstem =~ s/o$//
$sgstem =~ /$consend/o $plstem =~ s/o$//
Truth table100%3/3
A and B
A= $sgstem =~ /$consend/oB= $plstem =~ s/o$//
ABresult
0X0
100
111
824 4 $table = [ map("$sgstem$_", '', 'u', 'u', 'o'),
825 map("$plstem$_", 'o', 'oi', 'och') ];
826 ▶ } elsif($sgstem =~ /$consend/o && $plstem =~ s/u$//) {
Condition66%2/3
$sgstem =~ /$consend/o and $plstem =~ s/u$//
!ll&&!rl&&r
1204
MC/DC50%1/2
$sgstem =~ /$consend/o and $plstem =~ s/u$//
$sgstem =~ /$consend/o $plstem =~ s/u$//
Truth table66%2/3
A and B
A= $sgstem =~ /$consend/oB= $plstem =~ s/u$//
ABresult
0X0
100
111
827 4 $table = [ map("$sgstem$_", '', 'u', 'u', 'o'),
828 map("$plstem$_", 'u', 'î', 'ich') ];
829 ▶ } elsif($sgstem =~ s/i$// && $plstem =~ s/u$//) {
Condition66%2/3
$sgstem =~ s/i$// and $plstem =~ s/u$//
!ll&&!rl&&r
804
MC/DC50%1/2
$sgstem =~ s/i$// and $plstem =~ s/u$//
$sgstem =~ s/i$// $plstem =~ s/u$//
Truth table66%2/3
A and B
A= $sgstem =~ s/i$//B= $plstem =~ s/u$//
ABresult
0X0
100
111
830 4 $table = [ map("$sgstem$_", 'i', 'i', 'i', 'io'),
831 map("$plstem$_", 'u', 'î', 'ich') ];
832 ▶ } elsif($sgstem =~ s/u$// && $plstem =~ s/i$//) {
Condition66%2/3
$sgstem =~ s/u$// and $plstem =~ s/i$//
!ll&&!rl&&r
404
MC/DC50%1/2
$sgstem =~ s/u$// and $plstem =~ s/i$//
$sgstem =~ s/u$// $plstem =~ s/i$//
Truth table66%2/3
A and B
A= $sgstem =~ s/u$//B= $plstem =~ s/i$//
ABresult
0X0
100
111
833 4 $table = [ map("$sgstem$_", 'u', '', 'u', 'o'),
834 map("$plstem$_", 'i', 'î', 'ich') ];
835 ▶ } elsif($sgstem =~ s/â$// && $plstem =~ s/ao$//) {
Condition33%1/3
$sgstem =~ s/\342$// and $plstem =~ s/ao$//
!ll&&!rl&&r
004
MC/DC0%0/2
$sgstem =~ s/\342$// and $plstem =~ s/ao$//
$sgstem =~ s/\342$// $plstem =~ s/ao$//
Truth table33%1/3
A and B
A= $sgstem =~ s/\342$//B= $plstem =~ s/ao$//
ABresult
0X0
100
111
836 4 $table = [ map("$sgstem$_", 'â', 'â', 'â', 'ach'),
837 map("$plstem$_", 'ao', 'aoi', 'aoch') ];
838 } else {
839 0 return;
840 }
841 } elsif($gender eq 'fem') {
842 20 ▶ if($sgstem =~ /$consend/o && $plstem =~ s/â$//) {
Branch: 7 branches
BranchTrueFalseTotal
if ($sgstem =~ /$consend/o and $plstem =~ s/\342$//) { } 4 16 20
elsif ($sgstem =~ /$consend/o and $plstem =~ s/\352$//) { } 4 12 16
elsif ($sgstem =~ /i$/ and $plstem =~ s/i\352/i/) { } 4 8 12
elsif ($sgstem =~ s/\352$// and $plstem =~ s/\352$//) { } 4 4 8
elsif ($sgstem =~ s/\342$// and $plstem =~ s/\342$//) { } 4 0 4
elsif ($sgstem =~ /u$/ and $plstem =~ s/l\342$//) { } 0 0 0
elsif ($sgstem =~ /u$/ and $plstem =~ s/\342$//) { } 0 0 0
Condition100%3/3
$sgstem =~ /$consend/o and $plstem =~ s/\342$//
!ll&&!rl&&r
1244
MC/DC100%2/2
$sgstem =~ /$consend/o and $plstem =~ s/\342$//
$sgstem =~ /$consend/o $plstem =~ s/\342$//
Truth table100%3/3
A and B
A= $sgstem =~ /$consend/oB= $plstem =~ s/\342$//
ABresult
0X0
100
111
843 4 $table = [ map("$sgstem$_", '', 'a', 'ê', 'ach'),
844 map("$plstem$_", 'â', 'êi', 'ech') ];
845 ▶ } elsif($sgstem =~ /$consend/o && $plstem =~ s/ê$//) {
Condition66%2/3
$sgstem =~ /$consend/o and $plstem =~ s/\352$//
!ll&&!rl&&r
1204
MC/DC50%1/2
$sgstem =~ /$consend/o and $plstem =~ s/\352$//
$sgstem =~ /$consend/o $plstem =~ s/\352$//
Truth table66%2/3
A and B
A= $sgstem =~ /$consend/oB= $plstem =~ s/\352$//
ABresult
0X0
100
111
846 4 $table = [ map("$sgstem$_", '', 'e', 'ê', 'ech'),
847 map("$plstem$_", 'ê', 'êi', 'ech') ];
848 ▶ } elsif($sgstem =~ /i$/ && $plstem =~ s/iê/i/) {
Condition66%2/3
$sgstem =~ /i$/ and $plstem =~ s/i\352/i/
!ll&&!rl&&r
804
MC/DC50%1/2
$sgstem =~ /i$/ and $plstem =~ s/i\352/i/
$sgstem =~ /i$/ $plstem =~ s/i\352/i/
Truth table66%2/3
A and B
A= $sgstem =~ /i$/B= $plstem =~ s/i\352/i/
ABresult
0X0
100
111
849 4 $table = [ map("$sgstem$_", '', '', 'ê', 'ch'),
850 map("$plstem$_", 'ê', 'a', 'ech') ];
851 ▶ } elsif($sgstem =~ s/ê$// && $plstem =~ s/ê$//) {
Condition66%2/3
$sgstem =~ s/\352$// and $plstem =~ s/\352$//
!ll&&!rl&&r
404
MC/DC50%1/2
$sgstem =~ s/\352$// and $plstem =~ s/\352$//
$sgstem =~ s/\352$// $plstem =~ s/\352$//
Truth table66%2/3
A and B
A= $sgstem =~ s/\352$//B= $plstem =~ s/\352$//
ABresult
0X0
100
111
852 4 $table = [ map("$sgstem$_", 'ê', 'e', 'ê', 'ech'),
853 map("$plstem$_", 'ê', 'a', 'ech') ];
854 ▶ } elsif($sgstem =~ s/â$// && $plstem =~ s/â$//) {
Condition33%1/3
$sgstem =~ s/\342$// and $plstem =~ s/\342$//
!ll&&!rl&&r
004
MC/DC0%0/2
$sgstem =~ s/\342$// and $plstem =~ s/\342$//
$sgstem =~ s/\342$// $plstem =~ s/\342$//
Truth table33%1/3
A and B
A= $sgstem =~ s/\342$//B= $plstem =~ s/\342$//
ABresult
0X0
100
111
855 4 $table = [ map("$sgstem$_", 'â', 'a', 'ê', 'ach'),
856 map("$plstem$_", 'â', 'a', 'ech') ];
857 ▶ } elsif($sgstem =~ /u$/ && $plstem =~ s/lâ$//) {
Condition0%0/3
$sgstem =~ /u$/ and $plstem =~ s/l\342$//
!ll&&!rl&&r
000
MC/DC0%0/2
$sgstem =~ /u$/ and $plstem =~ s/l\342$//
$sgstem =~ /u$/ $plstem =~ s/l\342$//
Truth table0%0/3
A and B
A= $sgstem =~ /u$/B= $plstem =~ s/l\342$//
ABresult
0X0
100
111
858 0 $table = [ map("$sgstem$_", '', 'la', 'lê', 'lach'),
859 map("$plstem$_", 'lâ', 'lêi', 'lech') ];
860 ▶ } elsif($sgstem =~ /u$/ && $plstem =~ s/â$//) { # chizu; others?
Condition0%0/3
$sgstem =~ /u$/ and $plstem =~ s/\342$//
!ll&&!rl&&r
000
MC/DC0%0/2
$sgstem =~ /u$/ and $plstem =~ s/\342$//
$sgstem =~ /u$/ $plstem =~ s/\342$//
Truth table0%0/3
A and B
A= $sgstem =~ /u$/B= $plstem =~ s/\342$//
ABresult
0X0
100
111
861 0 $table = [ map("$sgstem$_", '', 'a', 'ê', 'ach'),
862 map("$plstem$_", 'â', 'êi', 'ech') ];
863 } else {
864 0 return;
865 }
866 } else {
867 0 return;
868 }
869  
870 54 return $table;
871 }
872  
873  
874 # Lost consonants which are restored in all but s.nom. and m.s.acc.
875  
876 11 $rootconstab = {
877 'andû' => 'r',
878 'aveku' => 'r',
879 'dhu' => 'n',
880 'di' => 'n',
881 'du' => 'r',
882 'glûmu' => 'l',
883 'kê' => 'r',
884 'kônu' => 'l',
885 'kû' => 'r',
886 'melhu' => 'r',
887 'mu' => 'r',
888 'na' => 'n',
889 'osôku' => 'l',
890 'rhu' => 'm',
891 }; # $rootconstab
892  
893 8 ▶sub adj {
Subroutine adj: called CC=9 SCAR=22.3
Pod documented
894 8 my $adj = shift;
895 8 my $rootcons = shift;
896 8 my $stem = $adj;
897 8 my $table;
898  
899 8 ▶ if(!defined($rootcons) && exists $rootconstab->{$adj}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $rootcons and exists $Lingua::Zompist::Barakhinei::rootconstab->{$adj}) 1 7 8
Condition100%3/3
not defined $rootcons and exists $Lingua::Zompist::Barakhinei::rootconstab->{$adj}
!ll&&!rl&&r
431
MC/DC100%2/2
not defined $rootcons and exists $Lingua::Zompist::Barakhinei::rootconstab->{$adj}
not defined $rootcons exists $Lingua::Zompist::Barakhinei::rootconstab->{$adj}
Truth table100%3/3
not(A) and B
A= not defined $rootconsB= exists $Lingua::Zompist::Barakhinei::rootconstab->{$adj}
ABresult
0X0
100
111
900 1 $rootcons = $rootconstab->{$adj};
901 }
902  
903 8 ▶ $rootcons = '' unless defined $rootcons;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $rootcons 3 5 8
904  
905 8 ▶ if($stem =~ /$consend/o || length $rootcons) {
Branch: 4 branches
BranchTrueFalseTotal
if ($stem =~ /$consend/o or length $rootcons) { } 4 4 8
elsif ($stem =~ s/\352$//) { } 2 2 4
elsif ($stem =~ s/i$//) { } 2 0 2
elsif ($stem =~ s/\342$//) { } 0 0 0
Condition100%3/3
$stem =~ /$consend/o or length $rootcons
l!l&&r!l&&!r
224
MC/DC100%2/2
$stem =~ /$consend/o or length $rootcons
$stem =~ /$consend/o length $rootcons
Truth table100%3/3
A or B
A= $stem =~ /$consend/oB= length $rootcons
ABresult
1X1
011
000
906 4 $table = [ [ $stem, $stem, map "$stem$rootcons$_", qw( a o i î ich ) ],
907 [ $stem, map "$stem$rootcons$_", qw( u u o o î ich ) ],
908 [ $stem, map "$stem$rootcons$_", qw( a ê ach â êi ech ) ] ];
909 } elsif($stem =~ s/ê$//) {
910 2 $table = [ [ map "$stem$_", qw( ê ê a o ê î êch ) ],
911 [ map "$stem$_", qw( e ê ê o e ê ech ) ],
912 [ map "$stem$_", qw( ê e ê ech ê êi ech ) ] ];
913 } elsif($stem =~ s/i$//) {
914 2 $table = [ [ map "$stem$_", 'i', '', qw( i io i î ich ) ],
915 [ map "$stem$_", qw( i i i io u î ich ) ],
916 [ map "$stem$_", qw( i i iê ich iê ia iech ) ] ];
917 } elsif($stem =~ s/â$//) {
918 0 $table = [ [ map "$stem$_", qw( â â â ach ao aoi aoch ) ],
919 [ map "$stem$_", qw( â â â ach ao aoi aoch ) ],
920 [ map "$stem$_", qw( â a ê ach achâ acha achech ) ] ];
921 } else {
922 0 return;
923 }
924  
925 8 return $table;
926 }
927  
928 11 1;
929 __END__
↑ Summary