G
Guest
Given a string that represents a sentence, is there a quick way of extracting
the words that make up the sentence? For example, given a string "See Dick
run." it would return an array of strings {"See","Dick","run"} One catch is
that it has to be locale sensitive.
I thought about just removing all the punctuation, but that leaves problems
like the word "don't". I don't want to end up with two words, "don" and "t".
the words that make up the sentence? For example, given a string "See Dick
run." it would return an array of strings {"See","Dick","run"} One catch is
that it has to be locale sensitive.
I thought about just removing all the punctuation, but that leaves problems
like the word "don't". I don't want to end up with two words, "don" and "t".