Miss any of our Open RFC calls?Watch the recordings here! »

sozlukjs

1.1.0 • Public • Published

Sözlük.JS

GitHub Workflow Status GitHub npm David npm bundle size npm bundle size

An API library for Turkish Dictionary websites.

Installation

Through npm

  • npm install --save sozlukjs

Using CDN

  • <script src="https://cdn.jsdelivr.net/npm/sozlukjs@latest/bundle.js"></script>

Example

const sozluk = require("sozlukjs");
 
sozluk.TDKDictionary.getMeaningData("sözlük")
    .then(data => console.log(data)); // console.logs the results of "sözlük" as JSON.

You can find more examples in the examples folder.

API

TDKDictionary

  • TDKDictionary.getMeaningData(query) query: String -> Promise

Fetches and returns JSON meaning data of given query string.

  • TDKDictionary.getSpellingData(query) query: String -> Promise

Fetches and returns JSON spelling data of given query string.

  • TDKDictionary.getAudioUrl(query) query: String -> Promise

Fetches and returns URL for pronounciation audios of given query string.

TurengDictionary

  • TurengDictionary.getTermSuggestions(query) query: String -> Promise

Fetches and returns JSON suggestion results of given query string.

  • TurengDictionary.getTermData(term) term: String -> Promise

Fetches and returns JSON data of given term string.

Install

npm i sozlukjs

DownloadsWeekly Downloads

37

Version

1.1.0

License

MIT

Unpacked Size

12.5 kB

Total Files

15

Last publish

Collaborators

  • avatar