| 1 | #!/usr/bin/env perl | ||
| 2 | |||
| 3 | # Here are listed only those verbs ending with "e" | ||
| 4 | # which are NOT COVERED by RULES in Lemmatizer.pm ! | ||
| 5 | |||
| 6 | my @DATA = qw( | ||
| 7 | accrete | ||
| 8 | ache | ||
| 9 | adhere | ||
| 10 | adore | ||
| 11 | age | ||
| 12 | analyse | ||
| 13 | atone | ||
| 14 | attune | ||
| 15 | baste | ||
| 16 | bone | ||
| 17 | bore | ||
| 18 | cane | ||
| 19 | centre | ||
| 20 | cite | ||
| 21 | clone | ||
| 22 | cohere | ||
| 23 | collapse | ||
| 24 | commune | ||
| 25 | compere | ||
| 26 | compete | ||
| 27 | complete | ||
| 28 | concrete | ||
| 29 | condone | ||
| 30 | contravene | ||
| 31 | convene | ||
| 32 | cope | ||
| 33 | crane | ||
| 34 | create | ||
| 35 | delete | ||
| 36 | delineate | ||
| 37 | dethrone | ||
| 38 | die | ||
| 39 | dope | ||
| 40 | drape | ||
| 41 | drone | ||
| 42 | dynamite | ||
| 43 | elope | ||
| 44 | enthrone | ||
| 45 | escape | ||
| 46 | excite | ||
| 47 | expedite | ||
| 48 | expunge | ||
| 49 | extradite | ||
| 50 | eye | ||
| 51 | finesse | ||
| 52 | forte | ||
| 53 | gangrene | ||
| 54 | gape | ||
| 55 | gazette | ||
| 56 | gripe | ||
| 57 | grope | ||
| 58 | hone | ||
| 59 | hope | ||
| 60 | ignite | ||
| 61 | ignore | ||
| 62 | importune | ||
| 63 | incite | ||
| 64 | interfere | ||
| 65 | interlope | ||
| 66 | intervene | ||
| 67 | intone | ||
| 68 | invite | ||
| 69 | lambaste | ||
| 70 | landscape | ||
| 71 | license | ||
| 72 | lie | ||
| 73 | lope | ||
| 74 | lunge | ||
| 75 | manoeuvre | ||
| 76 | misroute | ||
| 77 | mope | ||
| 78 | nauseate | ||
| 79 | normalise | ||
| 80 | obsolete | ||
| 81 | outmanoeuvre | ||
| 82 | overawe | ||
| 83 | paste | ||
| 84 | permeate | ||
| 85 | persevere | ||
| 86 | phone | ||
| 87 | pipe | ||
| 88 | plane | ||
| 89 | pore | ||
| 90 | postpone | ||
| 91 | premiere | ||
| 92 | profane | ||
| 93 | prune | ||
| 94 | range | ||
| 95 | rape | ||
| 96 | recite | ||
| 97 | re-create | ||
| 98 | reignite | ||
| 99 | reroute | ||
| 100 | reshape | ||
| 101 | reunite | ||
| 102 | revere | ||
| 103 | rope | ||
| 104 | route | ||
| 105 | scrape | ||
| 106 | secrete | ||
| 107 | sellotape | ||
| 108 | semaphore | ||
| 109 | shape | ||
| 110 | shore | ||
| 111 | sideswipe | ||
| 112 | slope | ||
| 113 | snipe | ||
| 114 | snore | ||
| 115 | stone | ||
| 116 | supervene | ||
| 117 | tape | ||
| 118 | taste | ||
| 119 | telephone | ||
| 120 | tie | ||
| 121 | tone | ||
| 122 | tune | ||
| 123 | unite | ||
| 124 | vie | ||
| 125 | wane | ||
| 126 | waste | ||
| 127 | wipe | ||
| 128 | zone | ||
| 129 | ); | ||
| 130 | |||
| 131 | sub analyze() { ## no critic qw(Subroutines::ProhibitSubroutinePrototypes) | ||
| 132 | foreach (@DATA) { | ||
| 133 | s/.$//; | ||
| 134 | print "${_}es\tVBZ\t${_}e\n"; | ||
| 135 | print "${_}ed\tVBN\t${_}e\n"; | ||
| 136 | print "${_}ed\tVBD\t${_}e\n"; | ||
| 137 | if (/^(.)i$/) { print "$1ying\tVBG\t${_}e\n"; } | ||
| 138 | else { print "${_}ing\tVBG\t${_}e\n"; } | ||
| 139 | } | ||
| 140 | return; | ||
| 141 | } | ||
| 142 | |||
| 143 | if ( $ARGV[0] eq '-a' ) { analyze(); } | ||
| 144 | elsif ( $ARGV[0] eq '-d' ) { | ||
| 145 | foreach (@DATA) { print "$_\n"; } | ||
| 146 | } | ||
| 147 | else { die "Invalid usage: use option -a or -d\n"; } |