{"action":"opened","issue":{"url":"https://api.github.com/repos/wit-ai/duckling/issues/70","labels_url":"https://api.github.com/repos/wit-ai/duckling/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/wit-ai/duckling/issues/70/comments","events_url":"https://api.github.com/repos/wit-ai/duckling/issues/70/events","html_url":"https://github.com/wit-ai/duckling/issues/70","id":129846181,"number":70,"title":"Defining new corpus/rules","user":{"login":"erniedeferia","id":3926153,"avatar_url":"https://avatars.githubusercontent.com/u/3926153?v=3","gravatar_id":"","url":"https://api.github.com/users/erniedeferia","html_url":"https://github.com/erniedeferia","followers_url":"https://api.github.com/users/erniedeferia/followers","following_url":"https://api.github.com/users/erniedeferia/following{/other_user}","gists_url":"https://api.github.com/users/erniedeferia/gists{/gist_id}","starred_url":"https://api.github.com/users/erniedeferia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erniedeferia/subscriptions","organizations_url":"https://api.github.com/users/erniedeferia/orgs","repos_url":"https://api.github.com/users/erniedeferia/repos","events_url":"https://api.github.com/users/erniedeferia/events{/privacy}","received_events_url":"https://api.github.com/users/erniedeferia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-29T18:31:47Z","updated_at":"2016-01-29T18:31:47Z","closed_at":null,"body":"This is not necessarily an issue, but a request for clarification. In attempting to define a simple grammar (e.g., \"create a job\") in which \"create\" is a :verb and \"job\" is the :subject, I have defined the following  corpus and rule files. This follows closely the examples provided in the README file. However, the corpus is loaded (!load), the tests report \"not found\" for each of the cases in the corpus. I would expect the explicit rules to match them. When (play :en$core \"create a job\" [:command]) there are zero matches.\r\nNotice that originally (commented out) I had a more encompassing regex in the rules file. The test function in the corpus is \"verbose\" to allow printf statement (removed).\r\n\r\n---> rules/en.command.clj\r\n```\r\n(\r\n ;;\"command\"\r\n ;;[(dim :command) #\"(add|create|edit|change)\\s+(?:a?)?\\s?(\\w+)\" ]\r\n ;;#\"(add|create|edit|change)\\s+(?:a?)?\\s?(\\w+)\"\r\n ;;{:dim \"command\" :verb (-> %1 :groups first) :subject (-> %1 :groups second)}\r\n\r\n  \"add job\"\r\n  #\"add job\"\r\n  {:dim \"command\" :verb \"create\" :subject \"job\"}\r\n\r\n  \"add a job\"\r\n  #\"add a job\"\r\n  {:dim \"command\" :verb \"create\" :subject \"job\"}\r\n\r\n  \"create job\"\r\n  #\"create job\"\r\n  {:dim \"command\" :verb \"create\" :subject \"job\" }\r\n\r\n  \"create a job\"\r\n  #\"create a job\"\r\n  {:dim \"command\" :verb \"create\" :subject \"job\"}\r\n)\r\n```\r\n---> corpus/en.command.clj\r\n```\r\n(\r\n {}\r\n\r\n \"create a job\"\r\n \"add a job\"\r\n \"add job\"\r\n (fn [context token]\r\n   (let [res\r\n         (when\r\n                    (and (= \"command\" (:dim token))\r\n                         (= \"create\" (:verb token))\r\n                         (= \"job\" (:subject token)) )\r\n           true\r\n           )\r\n         ]\r\n     res\r\n     ))\r\n )\r\n```\r\n"}}