drdhaval2785 / SanskritVerb

Verb declention for Sanskrit
41 stars 8 forks source link

ग्रहिज्या... #267

Closed drdhaval2785 closed 9 years ago

drdhaval2785 commented 9 years ago

One feedback from Naresh Cuntoor on gmail

आ+प्रच्छ gives आप्रच्छति instead of आपृच्छति ।

drdhaval2785 commented 9 years ago

sArvadhAtukamapit rule read

if ( $sarvadhatuka===1 && !in_array("Sap",$vik)) && (pr2(array("+"),$apit_sArvadhAtuka_pratyayas,blank(0),array("+fadfad"),$apit_sArvadhAtuka_pratyayas,blank(0),$text)!== $text )) 

and grahijyA.... rule read

if ($so!=="mahiN" && in_array($fo,array("jyA","graha!","vaya!","vyaDa!","vaSa!","vyaca!","o!vraScU!","praCa!","Brasja!")) && ((sub(array("jyA","grah","vay","vyaD","vaS","vyac","vraSc","pracC","Brasj"),array("+"),$apit_sArvadhAtuka_pratyayas,0) && $sarvadhatuka===1) || in_array("N",$itpratyaya) || in_array("k",$itpratyaya)) )

Earlier the rule grahijyA didn't apply because of non application of सार्वधातुकमपित्‌ and subsequent non-ङिद्वद्भाव of suffices.

Now corrected the rule सार्वधातुकमपित्‌ to

if ( $sarvadhatuka===1 && !in_array("Sap",$vik))

Now working. Also tested for जिनाति.