Socialmetrica/Socialmetrica.package/Tweet.class/instance/words.st

5 lines
182 B
Smalltalk

utilities
words
| rawWords |
rawWords := self textPreview splitOn: Character space.
^ rawWords := rawWords collect: [ :word | word trimmed copyWithoutAll: #($. $, $" $“ $”) ]