...
- Here is a gist snippet example of doing this: https://gist.github.com/nichtich/674522
- And some projects to make working with Wiktionary content more machine-readable:
Open Source Libraries / Dictionaries
- https://wordnet.princeton.edu/
- An example of using it from Node: http://progur.com/2016/12/how-to-use-wordnet-in-nodejs-applications.html
- Their list of related projects is worth perusing: https://wordnet.princeton.edu/wordnet/related-projects/
- http://www.babelnet.org/
Commercial Services
Many dictionary API services exist, including from the well-known dictionary publishers. These are examples, not comprehensive:
- https://developer.oxforddictionaries.com/
- https://www.dictionaryapi.com/
- https://www.wordsapi.com/ (based on wordnet)
- https://www.collinsdictionary.com/api/
Non-English Dictionary Services
This needs filling out! Wiktionary has non-English versions available such as (https://fr.wiktionary.org/wiki/Wiktionnaire:Page_d%E2%80%99accueil), but their quality is not certain.
Thoughts for Implementation in UIO
- Define a standard format for dictionary entries - a JSON structure that converts to display HTML
- An integrator would need to wire up a preferred service returning that format
- For the SJRK platform, we could create a Kettle-based dictionary datasource doing this as an example
- It might be possible to implement an in-browser parser doing the same - not sure about how this might interact with same origin policies
Working with Natural Language in Javascript
Some natural language libraries, like https://github.com/NaturalNode/natural, may have dictionary features.