Tool/EnglishMorpho/exceptions/contractions.pl untested

filter: Statementstmt 0.0% 0 / 4 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 6 SCAR -
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"; }