Yeah a bit of LLM help would have saved me sooooooo much time.
I had to create a bunch of very convoluted rules based on whether the preceding and following two words were verbs, nouns, adverbs, end of a sentence etc and with those I could be sure I was right about 95% of the time.
Eg before a noun it’s always his or her.
But some really do require a little intelligence beyond grammar rules.
Eg for ‘It is definitely his’
Both swaps make sense grammatically:
‘It is definitely hers’
or
‘It is definitely her’
You’d need to understand the context to get it right.
I had to create a bunch of very convoluted rules based on whether the preceding and following two words were verbs, nouns, adverbs, end of a sentence etc and with those I could be sure I was right about 95% of the time.
Eg before a noun it’s always his or her.
But some really do require a little intelligence beyond grammar rules.
Eg for ‘It is definitely his’
Both swaps make sense grammatically:
‘It is definitely hers’ or ‘It is definitely her’
You’d need to understand the context to get it right.