I’m working on a routine to give Hal abductive reasoning abilities, but my lack of experience with the brain editor functions is holding things up.
I’m looking for a function that matches the second entry of the deductive.brn and returns the first entry. Also, I would like a way to return multiple answers, if present.
Hal would behave as follows:
(current behaviour)
' User: If a person is overweight, then that person’s health is in danger.
' Ultra Hal: I see the relationship.
' User: If a person drinks excessively, then that person’s health is in danger.
' Ultra Hal: I see the relationship.
‘ User: Molly is a person.
‘ Ultra Hal: I see.
(new behaviour)
' User: Molly's health is in danger.
' Ultra Hal: Is that because Molly is overweight or because Molly drinks excessively?
or
' User: Why do you think Molly's health is in danger?
' Ultra Hal: Possibly because Molly is overweight or because Molly drinks excessively.