wordnet-ris
v0.9.11
Published
WordNet Reduced Information Set (RIS)
Downloads
13
Maintainers
Readme
WordNet-RIS
WordNet Reduced Information Set (RIS)
About
This is a Node.js Command-Line Interface (CLI) and underlying Application Programming Interface (API) for creating a WordNet-RIS (Reduced Information Set) out of the WordNet-LMF (Lexical Markup Framework) information as provided by the wordnet-lmf module. The WordNet-RIS data structure just contains all lemmas, their part-of-speech information and their synonyms.
Installation
$ npm install wordnet-ris
Command-Line Interface (CLI)
$ npm install wordnet-lmf-en
$ wordnet-ris -d wordnet-ris-en.json import @wordnet-lmf-en/wordnet-lmf-en.db
$ wordnet-ris -d wordnet-ris-en.json lookup "speaker"
Application Programming Interface (API)
(async () => {
const RIS = require("wordnet-ris")
const RISen = require("wordnet-ris-en")
console.log(RISen.name)
let ris = new RIS(RISen.json)
let results = ris.lookup("speaker")
console.log(results)
})().catch((err) => {
console.log(`ERROR: ${err}`)
})
License
Copyright (c) 2018-2023 Dr. Ralf S. Engelschall (http://engelschall.com/)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE 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.