GSOC'16 Kira's results. Apertium website improvements: Docs diff

From Apertium
Revision as of 17:55, 13 August 2016 by Kiara (talk | contribs)
Jump to navigation Jump to search

Dictionary Lookup mode

Back-end:

URL Function Parameters Output
/dictionaryLookup Generate all possible forms of a word.
  • langpair: language pair to use for translation
  • q: word to perform task on
Returns all possible forms
curl -G --data "langpair=eng|spa&q=run" http://localhost:2737/dictionaryLookup
{"n": ["carrera"], "vblex": ["correr", "funcionar"]}

Front-end:

ENABLED_MODES: an array of the enabled interfaces, a non-empty subset of ['translation', 'analyzation', 'generation', 'sandbox', 'lookup']

    • translation lookup turns on dictionary lookup mode.