Changeset 1017 for trunk/modules/output.tcl
- Timestamp:
- 08/10/09 19:27:02 (3 years ago)
- File:
-
- 1 edited
-
trunk/modules/output.tcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/output.tcl
r1010 r1017 830 830 831 831 # 832 # makes a wor kpast tense... probably best only use it on verbs :P832 # makes a word past tense... probably best only use it on verbs :P 833 833 proc bMotion_make_past_tense { word } { 834 834 … … 837 837 regexp -nocase {^(\w+)( (.+))?} $word matches verb extra 838 838 set newverb "" 839 840 putlog "working with $verb"841 839 842 840 # handle irregual verbs … … 897 895 } 898 896 897 # 898 # makes a word into present participle 899 proc bMotion_make_present_participle { word } { 900 901 # check if we got passed a multi-part verb (sit on) 902 set extra "" 903 regexp -nocase {^(\w+)( (.+))?} $word matches verb extra 904 set newverb "" 905 906 907 if [regexp -nocase {(.+[^i])e$} $verb matches a] { 908 return "${a}ing$extra" 909 } 910 911 if [regexp -nocase {(.+[aeiou])([^aeiouy])$} $verb matches a b] { 912 return "${a}${b}${b}ing$extra" 913 } 914 915 return "${verb}ing$extra" 916 } 899 917 900 918 #
Note: See TracChangeset
for help on using the changeset viewer.
