I’m looking for a function that can change things like i’m to I’m, theyre to they’re, i to I ect.
Does anyone know where I can find one?
If not, what would be the best way to approach this?
The only thing I have in mind is using something like
rawMessage = rawMessage.Replace("theyre", "they're");
Its for a chat room project, thanks!
It seems that you want to make an autocorrect feature. First you need to build a list of corrections
Then you need to replace words in your text:
Then you need to lookup the words:
The above code it not tested nor compiled.
Hope that this will help you in your attempt.