Get the dictionaries
GET
/v1/apps/{appId}/dictionaries
const url = 'https://api.shoofai.com/v1/apps/demo-store/dictionaries';const options = {method: 'GET', headers: {'x-shoof-api-key': '<x-shoof-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.shoofai.com/v1/apps/demo-store/dictionaries \ --header 'x-shoof-api-key: <x-shoof-api-key>'Returns the app’s stop words, plurals and compounds dictionaries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appId
required
string
The app’s id, shown in the dashboard (for example ali-sport-goods). demo-store is the public demo app.
Example
demo-storeResponses
Section titled “Responses”The stop words, plurals and compounds dictionaries.
Media typeapplication/json
object
dictionaries
Per language code. See Dictionaries.
object
stopWords
object
key
additional properties
object
add
Array<string>
remove
Array<string>
disableStandard
boolean
plurals
object
key
additional properties
Array<Array<string>>
compounds
object
key
additional properties
Array<object>
object
word
required
string
decomposition
required
Array<string>
Example
{ "dictionaries": { "stopWords": { "fr": { "add": [ "svp" ], "remove": [], "disableStandard": false } }, "plurals": { "ar": [ [ "كتاب", "كتب" ] ] }, "compounds": { "de": [ { "word": "kopfschmerztabletten", "decomposition": [ "kopfschmerz", "tabletten" ] } ] } }}