quote:
Originally posted by AngelDevil
Use "brain " (with the space at the end), and the code doesn't recognize "brains" as "brain" + "s"...
That's not exactly the wisest thing to do, there are many times when you're going to have the word at the end of a sentence (with a period following) or at the end of the message (with nothing following) and it won't be picked up through this method.
A better alternative is to split the message up into words using .split(" ") and then stripping trailing and preceding punctuation and translating the resultant word (or leaving it the same if there's no translation).