npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

wordnet-lmf-de

0.9.10 • Public • Published

WordNet-LMF-DE

WordNet Lexical Markup Framework (LMF): German (DE)

About

This is a Node.js module shipping the CC-BY-SA-4.0 licensed, 120K words containing, on-the-fly downloaded WordNet LMF (XML) data file of Open DE WordNet 1.3 from the Open DE WordNet Initiative plus the corresponding SQLite database file, on-the-fly generated with the wordnet-lmf module.

Installation

$ npm install wordnet-lmf wordnet-lmf-de

Usage

(async () => {
 
    const LMF   = require("wordnet-lmf")
    const LMFde = require("wordnet-lmf-de")
 
    console.log(LMFde.name)
 
    let lmf = new LMF({ database: LMFde.db })
    await lmf.open()
    let results = await lmf.query(
        "SELECT * FROM Lemma WHERE writtenForm LIKE '%nerd%';",
        { format: "table" }
    )
    console.log(results)
    await lmf.close()
 
})().catch((err) => {
    console.log(`ERROR: ${err}`)
})
Open DE WordNet 1.3 (2019-06-16) [120K words, CC-BY-SA-4.0]
┌────────────────┬──────────────────────┬──────────────┐
│ lexicalEntryId │ writtenForm          │ partOfSpeech │
├────────────────┼──────────────────────┼──────────────┤
│ w26204         │ Schneidbrennerdüse   │ n            │
│ w40189         │ Nerd                 │ n            │
│ w51748         │ Zenerdiode           │ n            │
│ w56117         │ innerdeutsche Grenze │ n            │
│ w62204         │ Nerd (Neol.)         │ n            │
│ w69145         │ Porzellanerde        │ n            │
│ w69146         │ weiße Tonerde        │ n            │
│ w69149         │ Pfeifenerde          │ n            │
│ w69358         │ Gartenerdbeere       │ n            │
│ w92320         │ männerdominiert      │ a            │
│ w100223        │ Designerdroge        │ n            │
│ w103172        │ Seltenerdmagnet      │ n            │
│ w106758        │ Seltenerdmetalle     │ n            │
│ w110720        │ ebenerdig            │ a            │
│ w26204         │ Schneidbrennerdüse   │ n            │
│ w40189         │ Nerd                 │ n            │
│ w51748         │ Zenerdiode           │ n            │
│ w56117         │ innerdeutsche Grenze │ n            │
│ w62204         │ Nerd (Neol.)         │ n            │
│ w69145         │ Porzellanerde        │ n            │
│ w69146         │ weiße Tonerde        │ n            │
│ w69149         │ Pfeifenerde          │ n            │
│ w69358         │ Gartenerdbeere       │ n            │
│ w92320         │ männerdominiert      │ a            │
│ w100223        │ Designerdroge        │ n            │
│ w103172        │ Seltenerdmagnet      │ n            │
│ w106758        │ Seltenerdmetalle     │ n            │
│ w110720        │ ebenerdig            │ a            │
└────────────────┴──────────────────────┴──────────────┘

License

Copyright (c) 2018-2019 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.

install

npm i wordnet-lmf-de

Downloadsweekly downloads

12

version

0.9.10

license

CC-BY-SA-4.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability