While switching to AEM spell check in XML editor, Authors should be able to select or right-click a word and choose 'Add to Dictionary'. Authors need an interface from XML Editor to be able to add words to the dictionary
for example shown in below screen shot