Replacing contractions bug?

I think I have found a bug when replacing contractions, “What will I doesn’t now” becomes “What will I do’t now”.

Grammar rule DID_BASEFORM

Fixed ([en] Improve some rules in rulegroup NON3PRS_VERB · languagetool-org/languagetool@ce38a7d · GitHub).

The suggestion is now “don’t”. For incorrect texts such as “I doesn’t like coffee”, this is the correct suggestion.

The correction to your example shows that we need a rule to find text such as “will I don’t”.