summaryrefslogtreecommitdiff
path: root/word-aligner/ortho-norm/rw.pl
diff options
context:
space:
mode:
Diffstat (limited to 'word-aligner/ortho-norm/rw.pl')
-rwxr-xr-xword-aligner/ortho-norm/rw.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/word-aligner/ortho-norm/rw.pl b/word-aligner/ortho-norm/rw.pl
new file mode 100755
index 00000000..4cb0e8e7
--- /dev/null
+++ b/word-aligner/ortho-norm/rw.pl
@@ -0,0 +1,13 @@
+#!/usr/bin/perl -w
+use strict;
+use utf8;
+
+binmode(STDIN, ":utf8");
+binmode(STDOUT, ":utf8");
+
+while(<STDIN>) {
+ $_ = lc $_;
+ s/([a-z])'( |$)/$1$2/g;
+ print;
+}
+