setdirection / twinput

Rich twitter input
http://setdirection.com/
1 stars 0 forks source link

Implement shrinkWords #20

Open dalmaer opened 13 years ago

dalmaer commented 13 years ago

The shrinkWords action takes the text and does what it can to shrink it for you. E.g. s/and/&/g.

ewpreston commented 13 years ago

Have this basically implemented. Using an array to store regex/shortcut objects for each word/phrase we want to support. If you can regex it you can shrink it. Presumes space on each end to delimit word. May want to support punctuation at some point.