Class Solution
In: solution.rb
Parent: Object

A class to find the solution of the word

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

Methods

Attributes

cnt  [R] 
prefix  [R] 
stem  [R] 
suffix  [R] 

Public Class methods

 Constructs a solution for a word. Note that the prefix, stem and suffix combination is <b>recomputed</b>

and may not necessarily match with the information provided by the dictionaries.

 * [debug] Whether or not the dictionnaries inconsistencies should be output
 * [cnt] Order in sequence ; not very useful actually
 * [prefix The prefix as provided by the prefixes dictionnary
 * [stem] The stem as provided by the stems dictionnary
 * [suffix] The suffix as provided by the suffixes dictionnary

Public Instance methods

Returns a string representation of how the word can be analyzed using arabic for the vocalizations..

 * @return The representation

Returns a string representation of how the word can be analyzed using the Buckwalter transliteration system for the vocalizations.

  • @return The representation

Protected Instance methods

Returns the lemma id in the stems dictionary.

 * @return The lemma ID

Returns the morphology of the prefix.

 * @return The morphology

Returns the grammatical categories of the recomputed prefixes or nil if there are no prefixes for the word.

 * @return The grammatical categories

Returns The vocalizations in arabic of the recomputed prefixes and their grammatical categories or nil if there is no stem for the word.

 * @return The vocalizations and the grammatical categories.

Returns the vocalizations of the recomputed prefixes in arabic or nil if there are no prefixes for the word.

 * @return The vocalizations

Returns the english glosses of the prefixes.

 * @return The glosses.

Returns The vocalizations using the Buckwalter transliteration system of the recomputed prefixes and their grammatical categories or nil if there are no prefixes for the word.

 * @return The vocalizations and the grammatical categories

Returns the vocalizations of the recomputed prefixes in the Buckwalter transliteration system or nil if there are no prefixes for the word.

 * @return The vocalizations

Returns the grammatical category of the recomputed stem.

 * @return The grammatical category

Returns The vocalization in arabic of the recomputed stem and its grammatical category or nil if there is no stem for the word.

 * @return The vocalizations and the grammatical categories.

Returns the vocalization of the recomputed stem in arabic or nil if there is no stem for the word.

 * @return The vocalization

Returns the english gloss of the stem.

 * @return The gloss.

Returns The vocalization using the Buckwalter transliteration system of the recomputed stem and its grammatical category or nil if there is no stem for the word.

 * @return The vocalizations and the grammatical categories.

Returns the morphology of the stem.

 * @return The morphology

Returns the vocalization of the recomputed stem in the Buckwalter transliteration system or nil if there is no stem for the word.

 * @return The vocalization

Returns the morphology of the suffix.

 * @return The morphology

Returns The vocalization in arabic of the recomputed stem and its grammatical category or nil if there is no stem for the word.

 * @return The grammatical categories

Returns The vocalization in arabic of the recomputed stem and its grammatical category or nil if there is no stem for the word.

 * @return The vocalizations and the grammatical categories.

Returns the vocalizations of the recomputed suffixes in arabic or nil if there are no suffixes for the word.

 * @return The vocalizations

Returns the english glosses of the suffixes.

 * @return The glosses.

Returns The vocalizations using the Buckwalter transliteration system of the recomputed stem and its grammatical category or nil if there is no stem for the word.

 * @return The vocalizations and the grammatical categories.

Returns the vocalizations of the recomputed suffixes in the Buckwalter transliteration system or nil if there are no suffixes for the word.

 * @return The vocalizations

Returns The vocalization of the word in arabic and its grammatical categories.

 * @return The vocalization and the grammatical categories

Returns the vocalization of the word in arabic.

 * @return The vocalization

Returns the english glosses of the word.

 * @return The glosses.

Returns The vocalization of the word in the Buckwalter transliteration system and its grammatical categories.

 * @return The vocalization and the grammatical categories

Returns the morphology of the word.

 * @return The morphology

Returns the vocalization of the word in the Buckwalter transliteration system.

 * @return The vocalization

Private Instance methods

Returns an array of vocalizations according to type specified in the given parameters

  • [type] Specifies the type of the function to perform, (1 for regular, 2 for long, 3 for arabic)
  • [arr] The array utilized, either of prefixes, stems, suffixes
  • [pre_stem_suff] Specifying which type of arrays are being handled (1 for prefixes, 2 for stems, 3 for suffixes)

Returns an array of vocalizations according to type specified in the given parameters

  • [arabic] Whether or not vocalization is for arabic
  • [arr] The array utilized, either of prefixes, stems, suffixes
  • [one] Whether or not we are manipulating single vocalization (only true for stem vocalizations, false for suffixes and prefixes)

Returns the vocalizations and the grammatical categories

  • [arabic] Boolean to choose, Buckwalter transliteration system or arabic

[Validate]