Get suggestion of coorect spelling our phrase:
RowIterator it = result.getRows();
Row r = rows.nextRow();
Value v = r.getValue("rep:spellcheck()");
String correctPhrase = v.getString();
So, correct spelling for phrase "quik OR (-foo bar)" is "quick OR (-fox bar)".