Class: Solution
- Inherits:
-
Object
- Object
- Solution
- Defined in:
- lib/raramorph/solution.rb
Constant Summary collapse
- @@ends_with_set_for_pos_one =
Set.new(["CONJ","EMPHATIC_PARTICLE","FUNC_WORD", "FUT_PART","INTERJ","INTERROG_PART","IV1S","IV2MS", "IV2FS","IV3MS","IV3FS","IV2D","IV2FD","IV3MD","IV3FD", "IV1P","IV2MP","IV2FP","IV3MP","IV3FP","NEG_PART", "PREP","RESULT_CLAUSE_PARTICLE"])
- @@ends_with_set_for_pos_two =
Set.new(["CASE_INDEF_NOM","CASE_INDEF_ACC", "CASE_INDEF_ACCGEN","CASE_INDEF_GEN" ,"CASE_DEF_NOM" , "CASE_DEF_ACC" ,"CASE_DEF_ACCGEN","CASE_DEF_GEN" , "NSUFF_MASC_SG_ACC_INDEF" ,"NSUFF_FEM_SG" ,"NSUFF_MASC_DU_NOM" , "NSUFF_MASC_DU_NOM_POSS" ,"NSUFF_MASC_DU_ACCGEN" , "NSUFF_MASC_DU_ACCGEN_POSS" ,"NSUFF_FEM_DU_NOM" , "NSUFF_FEM_DU_NOM_POSS" ,"NSUFF_FEM_DU_ACCGEN" , "NSUFF_FEM_DU_ACCGEN_POSS" ,"NSUFF_MASC_PL_NOM" , "NSUFF_MASC_PL_NOM_POSS" ,"NSUFF_MASC_PL_ACCGEN" , "NSUFF_MASC_PL_ACCGEN_POSS" ,"NSUFF_FEM_PL" ,"POSS_PRON_1S", "POSS_PRON_2MS" ,"POSS_PRON_2FS" ,"POSS_PRON_3MS" , "POSS_PRON_3FS","POSS_PRON_2D" ,"POSS_PRON_3D" ,"POSS_PRON_1P", "POSS_PRON_2MP" ,"POSS_PRON_2FP" ,"POSS_PRON_3MP" ,"POSS_PRON_3FP" , "IVSUFF_DO:1S" ,"IVSUFF_DO:2MS" ,"IVSUFF_DO:2FS" ,"IVSUFF_DO:3MS" , "IVSUFF_DO:3FS" ,"IVSUFF_DO:2D" ,"IVSUFF_DO:3D" ,"IVSUFF_DO:1P" , "I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ix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#stem ⇒ Object
readonly
Returns the value of attribute stem.
-
#suffix ⇒ Object
readonly
Returns the value of attribute suffix.
Instance Method Summary collapse
-
#to_arabized_string ⇒ Object
Returns a string representation of how the word can be analyzed using arabic for the vocalizations..
- #to_s ⇒ Object
Instance Attribute Details
#cnt ⇒ Object (readonly)
Returns the value of attribute cnt.
9 10 11 |
# File 'lib/raramorph/solution.rb', line 9 def cnt @cnt end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
9 10 11 |
# File 'lib/raramorph/solution.rb', line 9 def prefix @prefix end |
#stem ⇒ Object (readonly)
Returns the value of attribute stem.
9 10 11 |
# File 'lib/raramorph/solution.rb', line 9 def stem @stem end |
#suffix ⇒ Object (readonly)
Returns the value of attribute suffix.
9 10 11 |
# File 'lib/raramorph/solution.rb', line 9 def suffix @suffix end |
Instance Method Details
#to_arabized_string ⇒ Object
Returns a string representation of how the word can be analyzed using arabic for the vocalizations..
* @return The representation
462 463 464 465 466 467 468 469 470 471 472 |
# File 'lib/raramorph/solution.rb', line 462 def to_arabized_string ret = "" ret.force_encoding "UTF-8" ret = "\n SOLUTION # #{ @cnt.to_s} \n Lemma : #{ get_lemma() } \n Vocalized as : \t #{get_word_arabic_vocalization()} \n Morphology : \n #{ get_word_morphology()} Grammatical category : \n #{get_word_arabic_long_POS()} Glossed as : \n #{get_word_glosses()} " ret end |
#to_s ⇒ Object
447 448 449 450 451 452 453 454 455 456 457 |
# File 'lib/raramorph/solution.rb', line 447 def to_s ret = "" ret.force_encoding "UTF-8" ret = "\n SOLUTION # #{ @cnt.to_s} \n Lemma : #{ get_lemma() } \n Vocalized as : \t #{get_word_vocalization()} \n Morphology : \n #{ get_word_morphology()} Grammatical category : \n #{get_word_long_POS()} Glossed as : \n #{get_word_glosses()} " ret end |