{"action":"closed","issue":{"url":"https://api.github.com/repos/akoumjian/datefinder/issues/16","repository_url":"https://api.github.com/repos/akoumjian/datefinder","labels_url":"https://api.github.com/repos/akoumjian/datefinder/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/akoumjian/datefinder/issues/16/comments","events_url":"https://api.github.com/repos/akoumjian/datefinder/issues/16/events","html_url":"https://github.com/akoumjian/datefinder/issues/16","id":136122006,"number":16,"title":"REPLACEMENTS keys should consider whitespace permutations","user":{"login":"thebigspoon","id":208859,"avatar_url":"https://avatars.githubusercontent.com/u/208859?v=3","gravatar_id":"","url":"https://api.github.com/users/thebigspoon","html_url":"https://github.com/thebigspoon","followers_url":"https://api.github.com/users/thebigspoon/followers","following_url":"https://api.github.com/users/thebigspoon/following{/other_user}","gists_url":"https://api.github.com/users/thebigspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/thebigspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebigspoon/subscriptions","organizations_url":"https://api.github.com/users/thebigspoon/orgs","repos_url":"https://api.github.com/users/thebigspoon/repos","events_url":"https://api.github.com/users/thebigspoon/events{/privacy}","received_events_url":"https://api.github.com/users/thebigspoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akoumjian/datefinder/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"thebigspoon","id":208859,"avatar_url":"https://avatars.githubusercontent.com/u/208859?v=3","gravatar_id":"","url":"https://api.github.com/users/thebigspoon","html_url":"https://github.com/thebigspoon","followers_url":"https://api.github.com/users/thebigspoon/followers","following_url":"https://api.github.com/users/thebigspoon/following{/other_user}","gists_url":"https://api.github.com/users/thebigspoon/gists{/gist_id}","starred_url":"https://api.github.com/users/thebigspoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebigspoon/subscriptions","organizations_url":"https://api.github.com/users/thebigspoon/orgs","repos_url":"https://api.github.com/users/thebigspoon/repos","events_url":"https://api.github.com/users/thebigspoon/events{/privacy}","received_events_url":"https://api.github.com/users/thebigspoon/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-02-24T17:01:51Z","updated_at":"2016-02-25T04:50:09Z","closed_at":"2016-02-25T04:50:09Z","body":"Issue #14 also highlights that [REPLACEMENTS](https://github.com/akoumjian/datefinder/blob/master/datefinder.py#L103-L115) maybe should try to match **certain** permutations of a key surrounded by whitespace characters.\r\n```python\r\n    REPLACEMENTS = {\r\n        \"standard\": \"\",\r\n        \"daylight\": \"\",\r\n        \"savings\": \"\",\r\n        \"time\": \"\",\r\n        \"date\": \"\",\r\n        \"by\": \"\",\r\n        \"due\": \"\",\r\n        \"on\": \"\",\r\n        \",\": \"\",\r\n    }\r\n``` \r\nFor example, consider the `key = 'to'`\r\n- should match ' to'\r\n- should match 'to '\r\n- should match ' to '\r\n- should never match 'to' in say 'october'\r\n\r\nSee draft implementation with tests [here](https://github.com/thebigspoon/datefinder/blob/14_extra_tokens/datefinder.py#L162-L172)"}}