The spellingCheckRule.acceptPhrases function doesn’t seem to allow to ignore certain/all grammar errors such as repeating words.
For e.g. certain Australian towns like “Banda Banda”, “Balla Balla” are marked in red and cannot be ignored using this function. Am I using it incorrectly or is there a workaround to fix this?
acceptPhrases will only ignore the phrases for the speller rule. Other rules are independent of that and can still trigger. You might try immunizein the disambiguator as an alternative.
You can’t use that if you’re an API consumer. The Java rules need to take immunization into consideration. But as a user, you could write a rule in disambiguation.xml, as described in the link above.