Tool/EnglishMorpho/exceptions/verbs_not_ending_with_e.pl untested

filter: Statementstmt 0.0% 0 / 15 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
analyze
2.0
CRAP 2.0
1 #!/usr/bin/env perl
2  
3 # Here are listed only those verbs not ending with "e"
4 # which are NOT COVERED by RULES in Lemmatizer.pm !
5  
6 =pod
7  
8  
9  
10  
11 =cut
12  
13  
14 my @AMERICAN = qw(
15 cancel
16 equal
17 label
18 level
19 model
20 remodel
21 signal
22 total
23 travel
24 );
25  
26 my @BRITISH = qw(
27 appal
28 fulfil
29 enrol
30 );
31  
32 my @OTHER = qw(
33 accustom
34 aid
35 backpedal
36 barrel
37 bath
38 bedevil
39 bequeath
40 bias
41 blossom
42 bottom
43 bring
44 catalog
45 channel
46 clang
47 cling
48 counsel
49 echo
50 embargo
51 fling
52 focus
53 funnel
54 imperil
55 libel
56 mouth
57 murmur
58 overhang
59 parallel
60 pedal
61 pilot
62 profit
63 pummel
64 pyramid
65 quarrel
66 ravel
67 reach
68 refocus
69 relabel
70 rendezvous
71 revel
72 rival
73 shrivel
74 smooth
75 snivel
76 spiral
77 spring
78 sting
79 string
80 swing
81 swivel
82 tango
83 torpedo
84 unearth
85 unravel
86 veto
87 wrong
88 );
89  
90  
91  
92 sub analyze() { ## no critic qw(Subroutines::ProhibitSubroutinePrototypes)
93 foreach (@OTHER) {
94 print "${_}es\tVBZ\t$_\n";
95 }
96 foreach (@AMERICAN, @BRITISH, @OTHER) {
97 print "${_}ed\tVBN\t$_\n";
98 print "${_}ed\tVBD\t$_\n";
99 print "${_}ing\tVBG\t$_\n";
100 }
101 return;
102 }
103  
104 if ( $ARGV[0] eq '-a' ) { analyze(); }
105 elsif ( $ARGV[0] eq '-d' ) {
106 foreach (@AMERICAN, @BRITISH, @OTHER) { print "$_\n"; }
107 }
108 else { die "Invalid usage: use option -a or -d\n"; }