asilter79
12-15-2004, 01:53 AM
if an input has 2 properties, how can i handle it?
exp:
mary is a proper_noun or the true case can also be a pronoun. how will i define it?
when i write the codes like:
////////////////////////////////////
pronoun(she).
pronoun(he).
female(mary).
male(john).
proper_noun(mary).
proper_noun(john).
verb(slept).
is_Sentence(Person,Verb):-
pronoun(Person),
proper_noun(Person),
verb(Verb).
////////////////////////////////////
when i ask the program:
is_Sentence(mary,slept).
it says 'no'.
what can i do to get the answer 'yes'? because mary or a pronoun should make program say 'yes'. "he slept" also must be true.
plz help
thanks all.
exp:
mary is a proper_noun or the true case can also be a pronoun. how will i define it?
when i write the codes like:
////////////////////////////////////
pronoun(she).
pronoun(he).
female(mary).
male(john).
proper_noun(mary).
proper_noun(john).
verb(slept).
is_Sentence(Person,Verb):-
pronoun(Person),
proper_noun(Person),
verb(Verb).
////////////////////////////////////
when i ask the program:
is_Sentence(mary,slept).
it says 'no'.
what can i do to get the answer 'yes'? because mary or a pronoun should make program say 'yes'. "he slept" also must be true.
plz help
thanks all.