Class InMemorySolutionsHandler
In: in_memory_solutions_handler.rb
Parent: Object

An in-memory handler for managing solutions found by the morphological analyzer.

Author:eSpace technologies www.eSpace.com.eg
Copyright:2008

Methods

Public Class methods

Public Instance methods

Add alternative spellings for the given word

  • [translitered] The translitered word
  • [alt] The alternative spelling

Add solutions for a given word

  • [translitered] The translitered word.
  • [sol] The solution to the translitered word.

Return the alternative spellings of the word

  • [translitered] The translitered word
 * @return The alternative spellings matching the transliterd word.

Return the solutions of a given word

  • [translitered] The translitered word
 * @return The solution matching the transliterd word.

Whether or not the word already gave alternative spellings

  • [translitered] The translitered word
 * @return If the transliterd word has alternative spellings

Whether or not the word already gave solutions

  • [translitered] The translitered word
 * @return If it has the solution or not (Boolean).

[Validate]