File: eng-verb-hack.py

package info (click to toggle)
serpento 0.3.6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 292 kB
  • ctags: 381
  • sloc: python: 1,644; ansic: 666; perl: 157; sh: 116; makefile: 72
file content (12 lines) | stat: -rwxr-xr-x 235 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python

# this takes .index file, and duplicates infinite
# forms of verbs without "to"

import sys

f = open(sys.argv[1])
for i in f.readlines():
    sys.stdout.write(i)
    if i[:3]=='to ':
        sys.stdout.write(i[3:])