Branch Coverage

blib/lib/Lingua/EN/PluralToSingular.pm
Criterion Covered Total %
branch 40 42 95.2


line true false branch
396 42 8 unless ($not_plural{$word})
398 12 30 if ($plural{$word}) { }
21 9 elsif ($word =~ /s$/) { }
7 2 elsif ($word =~ /i$/) { }
405 1 20 if ($word =~ /'s$/) { }
2 18 elsif (length $word <= 2) { }
0 18 elsif ($word =~ /ss$/) { }
0 18 elsif ($word =~ /sis$/) { }
2 16 elsif ($word =~ /ies$/) { }
2 14 elsif ($word =~ /oes$/) { }
2 12 elsif ($word =~ /xes$/) { }
8 4 elsif ($word =~ /ses$/) { }
1 3 elsif ($word =~ /$es_re/) { }
423 1 1 if ($ies{$word}) { }
434 1 1 if ($oes{$word}) { }
448 3 5 if ($ses{$word}) { }
468 2 5 if ($i_to_us{$word}) { }
2 3 elsif ($i_to_o{$word}) { }
474 2 5 if ($i_to_other{$word})
488 5 4 if ($singular ne $word) { }
1 3 elsif ($plural{$singular} and $plural{$singular} eq $singular) { }