PageRenderTime 57ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/pe1/src/cs276/pe1/spell/SpellingCorrector.java

https://github.com/sarnoff/CS276
Java | 24 lines | 5 code | 3 blank | 16 comment | 0 complexity | a8242df47390e09277b61d292d221098 MD5 | raw file
  1. package cs276.pe1.spell;
  2. import java.util.List;
  3. /**
  4. * Basic interface for the spelling corrector.
  5. *
  6. * @author dramage
  7. */
  8. public interface SpellingCorrector {
  9. /**
  10. * Returns list of possible spelling corrections for a given
  11. * (possibly misspelled) word. The length of the returned list
  12. * is up to the implementer, but enough high-scoring candidates
  13. * should be included so that the best corrected spelling is
  14. * present (high) in the list.
  15. *
  16. * @param word A single word whose spelling is to be checked.
  17. * @return A list of possible corrections, with better corrections
  18. * ordered first.
  19. */
  20. public List<String> corrections(String word);
  21. }