- Timestamp:
- 12/15/10 11:00:06 (17 months ago)
- Location:
- trunk/plugins/en
- Files:
-
- 3 edited
-
complex_card.tcl (modified) (1 diff)
-
output_VAR.tcl (modified) (2 diffs)
-
output_english.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/complex_card.tcl
r1094 r1101 21 21 regexp -nocase "^!card( (adult))?" $text matches 1 modifier 22 22 if {[string tolower $modifier] == "adult"} { 23 bMotionDoAction $channel $nick "%%: the %VAR{card_value} of %VAR{scrap_adult_adjectives_t} %VAR{scrap_adult_construction_t: plural}"23 bMotionDoAction $channel $nick "%%: the %VAR{card_value} of %VAR{scrap_adult_adjectives_t} %VAR{scrap_adult_construction_t:strip,plural}" 24 24 return 1 25 25 } -
trunk/plugins/en/output_VAR.tcl
r1084 r1101 140 140 if {[rand 100] > 90} { 141 141 set replacement [bMotion_strip_article $replacement] 142 set replacement "%VAR{pluralprefix} $replacement" 143 if {[lsearch "strip" $options_list] > -1} { 144 set replacement [bMotion_strip_article $replacement] 142 putlog "plural: options list is $options_list" 143 if {[lsearch $options_list "strip"] > -1} { 144 set replacement "%VAR{pluralprefix:strip} $replacement" 145 } else { 146 set replacement "%VAR{pluralprefix} $replacement" 145 147 } 146 148 } … … 164 166 set replacement $temp 165 167 } 166 168 "like" { 169 bMotion_putloglev d * "Learning to like $replacement during %VAR expansion" 170 bMotion_abstract_add "_bmotion_like" $replacement 171 } 172 "dislike" { 173 bMotion_putloglev d * "Learning to dislike $replacement during %VAR expansion" 174 bMotion_abstract_add "_bmotion_dislike" $replacement 175 } 167 176 } 168 177 bMotion_putloglev 1 * "current replacement is $replacement" -
trunk/plugins/en/output_english.tcl
r1098 r1101 69 69 regsub -all "the an? " $line "the " line 70 70 71 regsub -all "(an?) (his|her|the)" $line "\\1 " line 72 71 73 #fix double (or more) spaces 72 74 regsub -all " +" $line " " line
Note: See TracChangeset
for help on using the changeset viewer.
