1.0.7 • Published 4 years ago

duden-search-api v1.0.7

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

duden-search-api

npm.io A Node.js Duden.de 'API' (website scraper for searching of german words on duden.de)

Install

npm i duden-search-api --save

Usage

const DudenSearchApi = require( "duden-search-api" );

let instance = new DudenSearchApi();

instance.searchWord( "gestern" ).then( ( result ) => {
	console.log( result );
} ).catch( ( error ) => {
	console.log( error );
} );

The result array

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"
		}
	}
]

Todo

  • simple word search
  • extend word results (distribution, hyphenation, ancestry, examples)
  • documentation ;)
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago