blob: aa0b5c52a7d97d4c039f2551eb77d65d2d0a9251 [file] [log] [blame]
#!/usr/bin/perl -w
# This script lowercases just the leaves of a tree, represented in
# standard PTB form.
use strict;
binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
while (<>) {
s/(\S+?)\)/lc $1 . ")"/ge;
print;
}