{"action":"created","issue":{"url":"https://api.github.com/repos/MycroftAI/adapt/issues/16","repository_url":"https://api.github.com/repos/MycroftAI/adapt","labels_url":"https://api.github.com/repos/MycroftAI/adapt/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/MycroftAI/adapt/issues/16/comments","events_url":"https://api.github.com/repos/MycroftAI/adapt/issues/16/events","html_url":"https://github.com/MycroftAI/adapt/issues/16","id":134796658,"number":16,"title":"Number support","user":{"login":"baudren","id":3526120,"avatar_url":"https://avatars.githubusercontent.com/u/3526120?v=3","gravatar_id":"","url":"https://api.github.com/users/baudren","html_url":"https://github.com/baudren","followers_url":"https://api.github.com/users/baudren/followers","following_url":"https://api.github.com/users/baudren/following{/other_user}","gists_url":"https://api.github.com/users/baudren/gists{/gist_id}","starred_url":"https://api.github.com/users/baudren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baudren/subscriptions","organizations_url":"https://api.github.com/users/baudren/orgs","repos_url":"https://api.github.com/users/baudren/repos","events_url":"https://api.github.com/users/baudren/events{/privacy}","received_events_url":"https://api.github.com/users/baudren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-19T07:33:43Z","updated_at":"2016-02-19T07:41:49Z","closed_at":null,"body":"For an intent parser I created, where you could ask the timetable for a specific bus line, I had to write down the possible numbers for bus lines. But then, typing real numbers from the command line, e.g. `when is the next bus sixty-one leaving from home?` starts to be annoying.\r\n\r\nWould it be possible to build in a support for numbers, somehow? I know of the library [inflect](https://pypi.python.org/pypi/inflect) that translates integers to text, which would help quite a bit on this. There is also [pynum2word](https://sourceforge.net/projects/pynum2word/).\r\n\r\nI think that being able to specify a new sort of entity (i.e. a numerical entity) would be nice. Something where you specify a range, say 1 to 100, and it will then understand both `1` and `sixty-one`, preferably returning the integer version in the json structure."},"comment":{"url":"https://api.github.com/repos/MycroftAI/adapt/issues/comments/186104375","html_url":"https://github.com/MycroftAI/adapt/issues/16#issuecomment-186104375","issue_url":"https://api.github.com/repos/MycroftAI/adapt/issues/16","id":186104375,"user":{"login":"baudren","id":3526120,"avatar_url":"https://avatars.githubusercontent.com/u/3526120?v=3","gravatar_id":"","url":"https://api.github.com/users/baudren","html_url":"https://github.com/baudren","followers_url":"https://api.github.com/users/baudren/followers","following_url":"https://api.github.com/users/baudren/following{/other_user}","gists_url":"https://api.github.com/users/baudren/gists{/gist_id}","starred_url":"https://api.github.com/users/baudren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baudren/subscriptions","organizations_url":"https://api.github.com/users/baudren/orgs","repos_url":"https://api.github.com/users/baudren/repos","events_url":"https://api.github.com/users/baudren/events{/privacy}","received_events_url":"https://api.github.com/users/baudren/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T07:41:49Z","updated_at":"2016-02-19T07:41:49Z","body":"Kind of a duplicate to #7, sorry. Still, having number support would be nice. Maybe we can discuss here what it would take to make a better support for at least numbers written like `20`, in the engine? Using regex for specifying a range can be quite painful...\r\n\r\nThe advantage of something like pynum2word is the sort of multilanguage support, also. Speaking of which: what is the plan for putting in localisation support? Will this be part of another package, somehow?"}}