Skip to content

Instantly share code, notes, and snippets.

What would you like to do? - Gives the meaning of a word, in a given language
const defaultLang = UbiquitySetup.languageCode;
names: ["TFD", "TheFreeDictionary"],
arguments: [{role: "object",
nountype: noun_arb_text,
label: "word"},
{role: "format",
nountype: noun_type_lang_wikipedia,
label: "language"}],
locale: "en-US",
homepage: "",
author: {name: "harlemblues", email: ""},
license: "MPL",
icon: "",
description: "Gives the meaning of a word, in a given language, using TheFreeDictionary",
execute: function(arguments) {
var lang = || defaultLang;
var searchUrl = "http://" + lang + "";
var searchParams = arguments.object.text;
Utils.openUrlInBrowser(searchUrl + searchParams);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.