Changeset 1085


Ignore:
Timestamp:
09/02/10 16:53:40 (17 months ago)
Author:
james
Message:

updates to demon output plugin
fix some plurals

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/output.tcl

    r1082 r1085  
    115115        set channel [chandname2name $channel] 
    116116        regsub "^\"(.+)\"?$" $action {\1} action 
    117         if {([string index $action 0] != ".") && ([rand 10] == 0)} { 
     117        if {([string index $action 0] != ".") && (![regexp -nocase "^is" $action]) && ([rand 10] == 0)} { 
    118118                set action "*$action*" 
    119119        } else { 
     
    10041004        bMotion_putloglev 5 * "bMotionMakePlural ($text)" 
    10051005 
    1006         if [regexp -nocase "(us|is|x|ch|sh)$" $text] { 
     1006        if [regexp -nocase "(ss|ts|us|is|x|ch|sh)$" $text] { 
    10071007                append text "es" 
    10081008                return $text 
  • trunk/plugins/en/output_demon.tcl

    r961 r1085  
    2727        foreach word $words { 
    2828 
     29                regsub -all {([^aeiou])i([^aeiuo])} $word {\1y\2} word 
    2930                regsub -all {c?k\M} $word {q} word 
     31 
    3032                regsub -all {o([b-df-hj-np-tv-xz])e(s|ing)?\M} $word {oa\1\2} word 
    3133 
     
    3638 
    3739                #other special cases to fix 
    38                 set word [string map -nocase { soam some } $word] 
     40                set word [string map -nocase { soam some someoan someone } $word] 
     41 
     42                regsub -all {le(s)?\M} $word {al\1} word 
    3943 
    4044                # moving on... 
Note: See TracChangeset for help on using the changeset viewer.