« Tool/EnglishMorpho/exceptions/adj_adv.pl
↑ Summary
Tool/EnglishMorpho/exceptions/false_negation.pl »
| 1 | #!/usr/bin/env perl | ||
| 2 | # 's VBZ can be lemmatized both as "be" and "have". | ||
| 3 | # According to BNC, "be" is more frequent (309K vs. 29K occurrences). | ||
| 4 | my $DATA = <<'END_DATA'; | ||
| 5 | n't RB not | ||
| 6 | 's VBZ be | ||
| 7 | 're VBP be | ||
| 8 | 've VBP have | ||
| 9 | 've VB have | ||
| 10 | 'm VBP be | ||
| 11 | 'll MD will | ||
| 12 | 'd MD would | ||
| 13 | 'd VBD have | ||
| 14 | wo MD will | ||
| 15 | ca MD can | ||
| 16 | END_DATA | ||
| 17 | |||
| 18 | if ( $ARGV[0] =~ /^-[ad]$/ ) { print $DATA; } | ||
| 19 | else { die "Invalid usage: use option -a or -d\n"; } |