Class DictionaryServiceImpl

java.lang.Object
org.opencastproject.dictionary.hunspell.DictionaryServiceImpl
All Implemented Interfaces:
DictionaryService

public class DictionaryServiceImpl extends Object implements DictionaryService
This dictionary service implementation passes the input text to the hunspell spell checker and returns its results.
  • Field Details

  • Constructor Details

    • DictionaryServiceImpl

      public DictionaryServiceImpl()
  • Method Details

    • setBinary

      public void setBinary(String b)
    • getBinary

      public String getBinary()
    • setCommand

      public void setCommand(String c)
    • getCommand

      public String getCommand()
    • runHunspell

      public LinkedList<String> runHunspell(String text) throws Throwable
      Run hunspell with text as input.
      Throws:
      Throwable
    • cleanUpText

      public Textual cleanUpText(String text)
      Filter the text according to the rules defined by the dictionary implementation used. This implementation will just let the whole text pass through.
      Specified by:
      cleanUpText in interface DictionaryService
      Returns:
      filtered text