PageRenderTime 2469ms CodeModel.GetById 40ms RepoModel.GetById 5ms app.codeStats 0ms

/src/spelling/corrector/SpellingCorrector.java

https://github.com/juliengrenier/java-spelling-corrector
Java | 21 lines | 6 code | 5 blank | 10 comment | 0 complexity | da31b75b418ca63f07ae80594dcff57e MD5 | raw file
  1. package spelling.corrector;
  2. import java.util.Collection;
  3. public interface SpellingCorrector {
  4. /**
  5. * This method will return the correction to a word passed in parameter
  6. * @param word The word to be corrected
  7. * @return The correction to the word or the word if no correction has been found
  8. */
  9. public String correct(final String word);
  10. /**
  11. * This method will return the candidates for the correction of a word
  12. * @param word The word to be corrected
  13. * @return A unmodifiable Collection of candidates
  14. */
  15. public Collection<String> getCandidates(final String word);
  16. }