Summary: The Discourse Dictionary plugin allows a user to add the dictionary meaning of a word to the first post of a topic. Here’s a short video to demonstrate the working.
Allows a user (default to TL2) to select a dictionary meaning of a word via the composer. The selected word when hovered, will display a tooltip showing the selected meaning.
Currently supports Oxford Dictionary API.
Currently supports singular form of words i.e. fungi won’t work you’ll have to use fungus.
The meanings are cached to the db for quick loads in the future and to avoid exhausting the API thresholds.
You can tweak the values once they’re loaded in the composer.
I’m quite excited to try this plugin. Not sure how yet, but will probably figure out a way to work it in.
One thing that came to mind was how helpful this may be for language learning. I went to the Oxford Dictionary documentation and saw that it seems possible to look up words in some other languages as well: https://developer.oxforddictionaries.com/documentation/languages
I don’t know too much about Ruby programming, but from what I can see, it looks like it may be easy for me to tweak the plugin to use Spanish or Swahili by just changing the dataset: 'en-us' line to es or sw in this code block:
My intention was to just launch it and see if there’s interest in the community. This plugin is a bit special to me because I made the spec for it almost 3 years ago when I didn’t have the know how of how to build it.
Well then maybe this plugin can help me also learn how to build a plugin (and do a PR) I’ll take a look one of these days and let you know. Thank you!
The one thing which I didn’t touch was the lemma api to fetch the singular form of words. Its important because the oxford api especially(and probably others) work with singular form. That would be valuable too.
Hi @fzngagan … I have an interesting use case, and I wonder if your plugin could help me.
I run a forum that is for people with hearing loss and there are lots and lots of terms that newbies need to learn. We have a wiki with some definitions, but it would be very handy if we could add system definitions and have defined terms and acronyms be automatically underlined without the user setting the [dict] tag. Having the Oxford suggested definitions is handy, but I imagine many of these words will need custom definition.
We have Linkify Words Theme Component but it goes only as far as converting an appearance of a word to a link. It can certainly be forked to achieve what you’re suggesting. You can hire a developer from marketplace if you’re happy to sponsor the work.