{"id":17801820,"url":"https://github.com/xissy/node-opinion-lexicon","last_synced_at":"2025-07-11T20:01:58.129Z","repository":{"id":10278776,"uuid":"12394226","full_name":"xissy/node-opinion-lexicon","owner":"xissy","description":"A node.js module to judge a word whether it's positive or negative.","archived":false,"fork":false,"pushed_at":"2014-03-03T18:19:39.000Z","size":178,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T16:46:30.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xissy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-27T01:49:29.000Z","updated_at":"2016-06-02T20:19:48.000Z","dependencies_parsed_at":"2022-09-20T12:22:14.213Z","dependency_job_id":null,"html_url":"https://github.com/xissy/node-opinion-lexicon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xissy/node-opinion-lexicon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-opinion-lexicon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-opinion-lexicon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-opinion-lexicon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-opinion-lexicon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xissy","download_url":"https://codeload.github.com/xissy/node-opinion-lexicon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xissy%2Fnode-opinion-lexicon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264890029,"owners_count":23678825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-27T12:39:45.250Z","updated_at":"2025-07-11T20:01:58.086Z","avatar_url":"https://github.com/xissy.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-opinion-lexicon\n\nA node.js module to judge a word whether it's positive or negative.\n\nThe positive words and negative words are from [here](http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html). Thanks to Bing Liu and his friends for sharing precious researches.\n\n\n## Installation\n\nVia [npm](https://npmjs.org):\n\n    $ npm install opinion-lexicon\n\n\n## Usage\n\n### Load in the module\n```javascript\n  var opinionLexicon = require('opinion-lexicon');\n```\n\n### Get the opinion from a word\n```javascript\n  opinionLexicon.getOpinion('great');     // returns 'positive'\n  opinionLexicon.getOpinion('rubbish');   // returns 'negative'\n  opinionLexicon.getOpinion('anyway');    // returns 'neutral'\n```\n\n### Helper functions\n```javascript\n  opinionLexicon.isPositive('great');     // returns true\n  opinionLexicon.isPositive('rubbish');   // returns false\n\n  opinionLexicon.isNegative('rubbish');   // retturns true\n  opinionLexicon.isNegative('great');     // retturns false\n\n  opinionLexicon.isNeutral('anyway');     // returns true\n  opinionLexicon.isNeutral('great');      // returns false\n```\n\n\n## License\n\nReleased under the MIT License\n\nCopyright (c) 2013 Taeho Kim \u003cxissysnd@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxissy%2Fnode-opinion-lexicon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxissy%2Fnode-opinion-lexicon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxissy%2Fnode-opinion-lexicon/lists"}