Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHOST converts pronoun I and names to lower case when passes them to a method. #3482

Open
stellarspot opened this issue Apr 26, 2019 · 1 comment
Labels

Comments

@stellarspot
Copy link
Contributor

Run the code:

(use-modules
 (opencog)
 (opencog nlp)
 (opencog nlp relex2logic)
 (opencog ghost)
 (opencog ghost procedures)
 (opencog exec))

(define-public (where-somebody-work who-list)
 (display (string-append "argument: " (cog-name (car (cog-outgoing-set who-list))) "\n"))
 (Word "SomeCompany"))

;; Ghost Rules
(ghost-parse "
r: (where do _* work) '_0 work in ^where-somebody-work('_0) company.
r: (where does _* works) '_0 work in ^where-somebody-work('_0) company.
")

; Test Ghost
(test-ghost "Where do I work?")
(test-ghost "Where does Alice works?")

"I" and "Alice" are passed as "i" and "alice to the where-somebody-work method.
Using single quote '_0 for the local variable value does not help as well.

@leungmanhin
Copy link
Contributor

Should be fixed by #3486

leungmanhin added a commit that referenced this issue Apr 29, 2019
@linas linas added the ghost label Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants