Branch Coverage

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


line true false branch
374 41 8 unless ($not_plural{$word})
376 12 29 if ($plural{$word}) { }
20 9 elsif ($word =~ /s$/) { }
7 2 elsif ($word =~ /i$/) { }
383 1 19 if ($word =~ /'s$/) { }
2 17 elsif (length $word <= 2) { }
0 17 elsif ($word =~ /ss$/) { }
0 17 elsif ($word =~ /sis$/) { }
2 15 elsif ($word =~ /ies$/) { }
2 13 elsif ($word =~ /oes$/) { }
2 11 elsif ($word =~ /xes$/) { }
7 4 elsif ($word =~ /ses$/) { }
1 3 elsif ($word =~ /$es_re/) { }
401 1 1 if ($ies{$word}) { }
412 1 1 if ($oes{$word}) { }
426 2 5 if ($ses{$word}) { }
446 2 5 if ($i_to_us{$word}) { }
2 3 elsif ($i_to_o{$word}) { }
452 2 5 if ($i_to_other{$word})
466 5 4 if ($singular ne $word) { }
1 3 elsif ($plural{$singular} and $plural{$singular} eq $singular) { }