« Tool/EnglishMorpho/exceptions/nouns_plural_es.pl
↑ Summary
Tool/EnglishMorpho/exceptions/verbs_doubling.pl »
| 1 | #!/usr/bin/env perl | ||
| 2 | my @DATA = qw( | ||
| 3 | bivouac | ||
| 4 | frolic | ||
| 5 | mimic | ||
| 6 | panic | ||
| 7 | picnic | ||
| 8 | traffic | ||
| 9 | ); | ||
| 10 | |||
| 11 | sub analyze() { ## no critic qw(Subroutines::ProhibitSubroutinePrototypes) | ||
| 12 | foreach (@DATA) { | ||
| 13 | print $_. "ked\tVBD\t" . $_ . "\n"; | ||
| 14 | print $_. "ked\tVBN\t" . $_ . "\n"; | ||
| 15 | print $_. "king\tVBG\t" . $_ . "\n"; | ||
| 16 | } | ||
| 17 | return; | ||
| 18 | } | ||
| 19 | |||
| 20 | if ( $ARGV[0] eq '-a' ) { analyze(); } | ||
| 21 | elsif ( $ARGV[0] eq '-d' ) { | ||
| 22 | foreach (@DATA) { print "$_\n"; } | ||
| 23 | } | ||
| 24 | else { die "Invalid usage: use option -a or -d\n"; } |