I'm trying to get a list of words from an articlea string. Sounds like an easy task for Mathematica. I have the following code:
text = "Merçi d'avoir pris le temps.";
ToLowerCase[#] & /@ StringSplit[articleStringSplit[text, Except[WordCharacter] ..]
However, there is a problem with this: the articleoutput is in French. Many words use
{"merçi", "d", "avoir", "pris", "le", "temps"}
and not
{"merçi", "d'avoir", "pris", "le", "temps"}
because the characters '
and -
is not a word character. Hence, and even more words use charactersI'd like é
andto ignore the à'
and, just like the î-
. All those characters are omitted. Any idea on how to fix thisdo that?