r2l rules with questions added

@linas , @ruiting @bgoertzel y'all want to take a look at these?

*I made one change in the previous rules -- lowered the priority of the decalarative SVIO rule to 2, which allowed the SVIO Q rule to function.*
Looks like I wrote it while thinking about the need to cover both sentences like
"Which girl runs faster?" and "Which girl eats pizza?" and got tired and ended up
mushing together the two sentence types.  Looks like I just need to write full
rules for each type of sentence . . . 

--------------------------------------------
On Wed, 9/24/14, Amen Belayneh <notifications@github.com> wrote:

 Subject: Re: [relex] r2l rules with questions added (#168)
 To: "opencog/relex" <relex@noreply.github.com>
 Cc: "anitzkin" <a_nitzkin@yahoo.com>
 Date: Wednesday, September 24, 2014, 5:24 PM
 
 In
 data/relex2logic-rules.txt:
 > +# How predicative
 > +#=========================
 > +[howpredadj-Q] {1} <SV, howSV-Q>
 QUERY-TYPE(_\$qVar, how) & how(_\%copula,
 _\$qVar) & _subj(_\%copula, $s) =>
 (howpredadj-Q-rule $s (get-instance-name $s word_index
 sentence_index))
 > +#===================
 > +# How of quantity
 > +#===================
 > +[howquantQ] {1} <SVO> QUERY-TYPE(_\$qVar,
 how_much) & _quantity($subj, _\$qVar) =>
 (howquantQ-rule $subj (get-instance-name $subj word_index
 sentence_index))
 > +#===================
 > +# How of degree  
 > +#===================
 > +[howdegQ] {1} <SV> QUERY-TYPE(_\$qVar,
 how_much) & _advmod($subj, _\$qVar) =>
 (howdegQ-rule $subj (get-instance-name $subj word_index
 sentence_index))
 > +#=============================================
 > +# CHOICE-TYPE QUESTIONS
 > +#=============================================
 > +[whichobjQ] {1} <SVO, SV>
 QUERY-TYPE(_\$qVar, which) & QUERY-FLAG($o, T) &
 _obj($v, $o) & _subj($v, $s) => (whichobjQ-rule $o
 (get-instance-name $o word_index sentence_index) $v
 (get-instance-name $v word_index sentence_index) $s
 (get-instance-name $s word_index sentence_index))
 > +[whichsubjQ] {1} <SV, SVO>
 QUERY-TYPE(_\$qVar, which) & QUERY-FLAG($s, T) &
 _subj($v, $s) => (whichsubjQ-rule $s (get-instance-name
 $s word_index sentence_index) $v (get-instance-name $v
 word_index sentence_index))
 
 the function call for whichsubjQ is not passing the right
 number of arguments
 
 —
 Reply to this email directly or view
 it on GitHub.