regex - How Can I Parse a Document and Replace the Content to Change Context from 1st or 2nd Person to 3rd Person? -
Actually I need some text:
- I have ice cream cones.
- You are in trouble.
- You need a bath.
and change it from 1 or 2 person to third person.
- His ice cream cone is
- She is in trouble.
- She needs a bath.
I have started a JS app, but it is very easy at this time.
Before I wasted time to revise the wheel again, I thought I asked: Do anyone know from any third party libraries who do such things? If not, does anyone give any advice or guidance to advise me?
I do not know about any libraries that do this out-of-box But I have used it, in which there is an action conjugation module, which is simple for English action conjunction mostly to expand on Benoit's comments to implement this functionality themselves, But there are quite a few exceptions, especially when tension changes.
Comments
Post a Comment