Class InMemoryDictionaryHandler
In: in_memory_dictionary_handler.rb
Parent: Object

Methods

Public Class methods

  • Loads Dictionaries and initiate variables
  • load the marshaled stems dictionary if avalaible or load from the origin dictionary if not avalaible
  • Marshal the stems dictionary into a file
  • Loads Stem dictionary from original file then marshal the dictionary for faster access

Private Class methods

  • Load Compatibilty tables
  • [set] Set for Loading Compatibilty Tables
  • [name] Table Name
  • [file] File Path
  • load Dictionary from files
  • [dictionary] Hash of Arrays to store the Dictionary
  • [name] Dictionary Name
  • [file] File Path

Public Instance methods

  • Check if translitered word has prefix
  • [translitered] Translitered word to be checked
  • Check if translitered word has stem
  • [translitered] Translitered word to be checked
  • Check if translitered word has suffix
  • [translitered] Translitered word to be checked
  • Check if prefix and stem are compatible
  • [prefix] prefix to be checked
  • [stem] stem to be checked
  • Check if prefix and suffix are compatible
  • [prefix] prefix to be checked
  • [suffix] suffix to be checked
  • Returns Stems Dictionary
  • Check if stem and suffix are compatible
  • [stem] stem to be checked
  • [suffix] suffix to be checked
  • Returns Suffixes Dictionary

[Validate]