Changeset 1042


Ignore:
Timestamp:
10/16/09 15:00:06 (2 years ago)
Author:
james
Message:

add support for simple present tense verbs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/output.tcl

    r1037 r1042  
    945945        set extra "" 
    946946        regexp -nocase {^(\w+)( (.+))?} $word matches verb extra 
    947         set newverb "" 
    948  
    949947 
    950948        if [regexp -nocase {(.+[^i])e$} $verb matches a] { 
     
    957955 
    958956        return "${verb}ing$extra" 
     957} 
     958 
     959# 
     960# makes a work into the simple present 
     961proc bMotion_make_simple_present { word } { 
     962 
     963        # check if we got passed a multi-part verb (sit on) 
     964        set extra "" 
     965        regexp -nocase {^(\w+)( (.+))?} $word matches verb extra 
     966 
     967        return "${verb}s$extra" 
    959968} 
    960969 
Note: See TracChangeset for help on using the changeset viewer.