Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface GrammarChecker.Rule

One check over a text.

Methods

public abstract void check(String text, List<int[]> words, List<ProofIssue> out)Adds the problems this rule finds in a text.

Method details

check

public abstract void check(String text, List<int[]> words, List<ProofIssue> out)
Adds the problems this rule finds in a text.

Parameters

text String
the text, typically a paragraph
words List<int[]>
its word ranges, from SpellChecker.words
out List<ProofIssue>
where issues go