dict
v0.1.2Look up words in the Azerbaijani explanatory dictionary; downloads its database once (local only).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
define Define
Look a word up: its entries in the dictionary, in print order, with their meanings. Homonyms are separate entries (ÇAY¹, ÇAY²). A headword may be typed as printed, with its optional letters (AB(B)ASI) or its number, and a variant is found under each spelling. If no headword is spelled as given, accents and hyphens are ignored (seher finds şəhər and səhər). An entry that only says `bax X` (see X) comes with X's entry in `followed`. The word must be a headword, not an inflected form: for kitabları look up kitab. When nothing matches, `suggestions` lists headwords to try. Long entries…
| Parameter | Type | Description |
|---|---|---|
word * | string | A headword, as printed or typed: kitab, İŞIQ, ÇAY², AB(B)ASI. Case and accents may be left out. |
max_chars | integer | Longest piece of an entry's text to return. |
search Search
Find entries whose text contains all the words: look a word up by what it means. Every word is required; there are no operators such as OR, and at most twelve words are used. Azerbaijani adds endings, so a word of four letters or more is matched by its first five letters (içmək finds içir and içən); exact=true matches whole words. Case does not matter and İ and I are told apart. Accents must be right here, unlike in define. The headword the query spells comes first, then headwords that contain its words, then the best matches. Use define to look up a headword.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to find in the entries' text, all of them: su qabı. |
exact | boolean | Match whole words only, not their first five letters. |
limit | integer | Entries to return. |
offset | integer | Entries to skip, for paging. |
browse Browse
List the entries around a headword in print order, like turning the pages. Start from a word, or from the beginning of one (the list starts at the first headword that begins with it), or from an entry id. `next_id` and `previous_id` go on from either end: pass them as entry_id.
| Parameter | Type | Description |
|---|---|---|
after | integer | Entries to show after it. |
before | integer | Entries to show before it. |
entry_id | An entry id to start from, from any answer, to turn pages. | |
word | A headword to start from, or the beginning of one. Leave out when giving entry_id. |
read_entry Read Entry
Read an entry from a character offset: the rest of one that define or search cut short. A few entries run to tens of thousands of characters. `next_offset` is null at the end.
| Parameter | Type | Description |
|---|---|---|
entry_id * | integer | An entry id from any answer. |
max_chars | integer | Longest piece of an entry's text to return. |
offset | integer | Character to start at; next_offset of an answer reads on. |