{"action":"created","issue":{"url":"https://api.github.com/repos/NaturalNode/natural/issues/409","repository_url":"https://api.github.com/repos/NaturalNode/natural","labels_url":"https://api.github.com/repos/NaturalNode/natural/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/NaturalNode/natural/issues/409/comments","events_url":"https://api.github.com/repos/NaturalNode/natural/issues/409/events","html_url":"https://github.com/NaturalNode/natural/issues/409","id":300705877,"number":409,"title":"Indonesian stemmer crash on require/import","user":{"login":"teddis","id":1139314,"avatar_url":"https://avatars3.githubusercontent.com/u/1139314?v=4","gravatar_id":"","url":"https://api.github.com/users/teddis","html_url":"https://github.com/teddis","followers_url":"https://api.github.com/users/teddis/followers","following_url":"https://api.github.com/users/teddis/following{/other_user}","gists_url":"https://api.github.com/users/teddis/gists{/gist_id}","starred_url":"https://api.github.com/users/teddis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teddis/subscriptions","organizations_url":"https://api.github.com/users/teddis/orgs","repos_url":"https://api.github.com/users/teddis/repos","events_url":"https://api.github.com/users/teddis/events{/privacy}","received_events_url":"https://api.github.com/users/teddis/received_events","type":"User","site_admin":false},"labels":[{"id":84670080,"url":"https://api.github.com/repos/NaturalNode/natural/labels/Bugs","name":"Bugs","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-27T16:42:01Z","updated_at":"2018-03-22T15:22:57Z","closed_at":"2018-03-22T15:22:57Z","author_association":"NONE","body":"Dang, this wonderful-looking package crashes promptly on import. Who else is able to use this package? And it's sad it looks like this package is no longer actively maintained. I get this crash, and so far having trouble understanding how the word array can contain a function (avg). There is nothing adding a function to the end of the array! It would also be nice to disable undesirable features to save start-up time and space.\r\n\r\n```\r\n29928: zulmat\r\n29929: zulu\r\n29930: zurafah\r\n29931: zuriah\r\n29932: zus\r\navg: function () {\r\n    return this.reduce((p, c) => p + c, 0) / this.length;\r\n}\r\n\r\n/node_modules/natural/lib/natural/stemmers/indonesian/stemmer_id.js:136\r\n        word = word.trim();\r\n                    ^\r\nTypeError: word.trim is not a function\r\n```"},"comment":{"url":"https://api.github.com/repos/NaturalNode/natural/issues/comments/375346062","html_url":"https://github.com/NaturalNode/natural/issues/409#issuecomment-375346062","issue_url":"https://api.github.com/repos/NaturalNode/natural/issues/409","id":375346062,"user":{"login":"Hugo-ter-Doest","id":7829083,"avatar_url":"https://avatars0.githubusercontent.com/u/7829083?v=4","gravatar_id":"","url":"https://api.github.com/users/Hugo-ter-Doest","html_url":"https://github.com/Hugo-ter-Doest","followers_url":"https://api.github.com/users/Hugo-ter-Doest/followers","following_url":"https://api.github.com/users/Hugo-ter-Doest/following{/other_user}","gists_url":"https://api.github.com/users/Hugo-ter-Doest/gists{/gist_id}","starred_url":"https://api.github.com/users/Hugo-ter-Doest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hugo-ter-Doest/subscriptions","organizations_url":"https://api.github.com/users/Hugo-ter-Doest/orgs","repos_url":"https://api.github.com/users/Hugo-ter-Doest/repos","events_url":"https://api.github.com/users/Hugo-ter-Doest/events{/privacy}","received_events_url":"https://api.github.com/users/Hugo-ter-Doest/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T15:22:57Z","updated_at":"2018-03-22T15:22:57Z","author_association":"COLLABORATOR","body":"The issue has been solved already. Please pull the most recent version of natural from github to prevent this error (instead of installing from NPM).\r\n\r\n@kkoch986 could you please release a new version to NPM?\r\n\r\nI will close the issue now.\r\n\r\nHugo"}}
{"actor":{"display_login":"Hugo-ter-Doest"}}