Interface LexiconDefinitionService

All Known Implementing Classes:
LexiconDefinitionServiceImpl

public interface LexiconDefinitionService
Defines the contract for getting lexicon definitions out of Lucene
  • Method Details

    • lookup

      Map<String,LexiconSuggestion> lookup(Set<String> strongNumbers, String userLanguage)
      Looks up a set of strong numbers by returning lexicon suggestions, keyed by strong numbers
      Parameters:
      strongNumbers - the strong numbers to be looked up
      Returns:
      a map from strong numbers to the found lexical entries.
    • lookup

      LexiconSuggestion lookup(String strongNumber)
      Looks up a single strong number
      Parameters:
      strongNumber - a single strong number
      Returns:
      the first strong number that matches the given input