[x] When user clicks on replacement button, the change is applied to the text
[x] When the change is applied, the suggestion card disappears
[x] Fix bug where click to replace doesn't work properly on contractions suggestions
[x] Set duplicated words suggestions to appear before article suggestions. This way if you if "I saw an an dog" you won't end up with "I saw an a dog" by fixing the article before the duplicated word.
Implemented this feature in d8acd70, but there's a bug where contractions aren't being replaced properly, but I think it's due to a bug in the retext-use-contractions plugin itself.
This will also be useful for the Figma plugin.
Expected behavior