File: eng-verb-hack.py

package info (click to toggle)
serpento 0.4.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 360 kB
  • ctags: 391
  • sloc: python: 1,762; ansic: 669; perl: 157; sh: 122; 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:])