A Node.js Duden.de 'API' (website scraper for searching of german words on duden.de)
npm i duden-search-api --save
const DudenSearchApi = require( "duden-search-api" );
let instance = new DudenSearchApi();
instance.search( "gestern" ).then( ( result ) => {
console.log( result );
} ).catch( ( error ) => {
console.log( error );
} );
The resulted return value is in the following scheme:
[
{
"word": "gestern",
"props": {
"wordClass": "Adverb",
"hyphenation": [
"ges",
"tern"
],
"meanings": [
"an dem Tag, der dem heutigen unmittelbar vorausgegangen ist",
"früher"
],
"ancestry": "mittelhochdeutsch gester(n), althochdeutsch gesteron, eigentlich = am anderen Tag"
}
}
]
- simple word search
- extend word results (distribution, hyphenation, ancestry, examples)
- documentation ;)
- …