{"id":23072484,"url":"https://github.com/doches/rwordnet","last_synced_at":"2025-04-07T10:24:58.920Z","repository":{"id":450786,"uuid":"73996","full_name":"doches/rwordnet","owner":"doches","description":"A pure Ruby interface to the WordNet database","archived":false,"fork":false,"pushed_at":"2019-08-22T08:42:11.000Z","size":8456,"stargazers_count":88,"open_issues_count":5,"forks_count":25,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-24T20:03:58.748Z","etag":null,"topics":["nlp-library","ruby","wordnet","wordnet-tags"],"latest_commit_sha":null,"homepage":"http://www.texasexpat.net/","language":"Ruby","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/doches.png","metadata":{"files":{"readme":"README.markdown","changelog":"History.txt","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":"2008-11-10T19:21:37.000Z","updated_at":"2024-02-08T16:54:44.000Z","dependencies_parsed_at":"2022-07-07T14:41:01.540Z","dependency_job_id":null,"html_url":"https://github.com/doches/rwordnet","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Frwordnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Frwordnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Frwordnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doches%2Frwordnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doches","download_url":"https://codeload.github.com/doches/rwordnet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247633183,"owners_count":20970279,"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":["nlp-library","ruby","wordnet","wordnet-tags"],"created_at":"2024-12-16T07:19:56.896Z","updated_at":"2025-04-07T10:24:58.901Z","avatar_url":"https://github.com/doches.png","language":"Ruby","readme":"# A pure Ruby interface to WordNet #\n\n[![Gem Version](https://badge.fury.io/rb/rwordnet.svg)](http://badge.fury.io/rb/rwordnet)\n[![Build Status](https://travis-ci.org/doches/rwordnet.png)](https://travis-ci.org/doches/rwordnet)\n[![Documentation Status](https://inch-ci.org/github/doches/rwordnet.svg?branch=master)](https://inch-ci.org/github/doches/rwordnet)\n[![Code Climate](https://codeclimate.com/github/doches/rwordnet/badges/gpa.svg)](https://codeclimate.com/github/doches/rwordnet)\n[![Test Coverage](https://codeclimate.com/github/doches/rwordnet/badges/coverage.svg)](https://codeclimate.com/github/doches/rwordnet/coverage)\n\n## Summary ##\n\n+ Works directly on the database that comes with WordNet\n+ No gem or native dependencies\n+ *Very* easy to install\n+ Small footprint (8.1M vs 24M for Ruby-Wordnet+DB)\n+ Can use a custom, existing WordNet installation\n\n## About ##\n\nThis library implements a pure Ruby interface to the WordNet lexical/semantic\ndatabase. Unlike existing ruby bindings, this one doesn't require you to convert\nthe original WordNet database into a new database format; instead it can work directly\non the database that comes with WordNet.\n\nIf you're doing something data-intensive you will achieve much better performance\nwith Michael Granger's [Ruby-WordNet](http://www.deveiate.org/projects/Ruby-WordNet/),\nsince it converts the WordNet database into a BerkelyDB file for quicker access.  rwordnet has a much smaller footprint, with no gem or native dependencies, and requires about a third of the space on disk as Ruby-Wordnet + DB. In\nwriting rwordnet, I've focused more on usability and ease of installation ( *gem install\nrwordnet* ) at the expense of some performance. Use at your own risk, etc.\n\n| Note |\n| --- |\n| `2.0.0` changed how you require rwordnet from `require 'wordnet'` to `require 'rwordnet'` (note the extra `r`!).  |\n\n## Installation ##\n\nOne of the chief benefits of rwordnet over Ruby-WordNet is how easy it is to install:\n\n    gem install rwordnet\n\nThat's it! rwordnet comes bundled with the WordNet database which it uses by default,\nso there's absolutely nothing else to download, install, or configure.\nOf course, if you want to use your own WordNet installation, that's easy too -- just\nset the path to WordNet's database files before using the library (see examples below).\n\n## Usage ##\n\nThe other benefit of rwordnet over Ruby-WordNet is that it's so much easier (IMHO) to\nuse.\n\nAs an example, consider finding all of the noun glosses for a given word:\n\n```Ruby\nrequire 'rwordnet'\n\nlemma = WordNet::Lemma.find(\"fruit\", :noun)\nlemma.synsets.each { |synset| puts synset.gloss }\n```\n\n...or all of the glosses, period:\n\n```Ruby\nlemmas = WordNet::Lemma.find_all(\"fruit\")\nsynsets = lemmas.map { |lemma| lemma.synsets }\nwords = synsets.flatten\nwords.each { |word| puts word.gloss }\n```\n\nHave your own WordNet database that you've marked up with extra attributes and whatnot?\nNo problem:\n\n```Ruby\nrequire 'rwordnet'\n\nWordNet::DB.path = \"/path/to/WordNet-3.0\"\nlemmas = WordNet::Lemma.find_all(\"fruit\")\n```\n","funding_links":[],"categories":["Linguistic Resources"],"sub_categories":["Text-to-Speech-to-Text"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoches%2Frwordnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoches%2Frwordnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoches%2Frwordnet/lists"}