if sub_link in links_list1:
if ('Who').lower() in sent_split or 'Who' in sent_split:
result = 'person'
break
elif (('Where').lower() in sent_split or 'Where' in sent_split) and 'What' not in read_str and 'what' not in read_str:
result = 'location'
break
elif ('Why').lower() in sent_split or 'Why' in sent_split:
result = 'reason'
break
member(SUBLINK, LINKSLIST),
(
member('Who', SENTSPLIT), member('who', SENTSPLIT),
(
nb_linkval(result , 'Person')
); # I guess if above condition satisfies then it automatically returns without checking further code
member('What', SENTSPLIT), notmember('what', SENTSPLIT), #notmember, is there cluase like notmember to check `not in list` then correct
(
nb_linkval(result , 'Thing')
);
member('Where', SENTSPLIT), notmember('where', SENTSPLIT),
(
nb_linkval(result , 'where')
)
).
if sub_link in links_list1:
if ('Who').lower() in sent_split or 'Who' in sent_split:
result = 'person'
break
elif (('Where').lower() in sent_split or 'Where' in sent_split) and 'What' not in read_str and 'what' not in read_str:
result = 'location'
break
elif ('Why').lower() in sent_split or 'Why' in sent_split:
result = 'reason'
break
member(SUBLINK, LINKSLIST),
(
member('Who', SENTSPLIT), member('who', SENTSPLIT),
(
nb_linkval(result , 'Person')
); # I guess if above condition satisfies then it automatically returns without checking further code
member('What', SENTSPLIT), notmember('what', SENTSPLIT), #notmember, is there cluase like notmember
(
nb_linkval(result , 'Thing')
);
member('Where', SENTSPLIT), notmember('where', SENTSPLIT),
(
nb_linkval(result , 'where')
)
).