Blog indexRollingšŸ„ŽblogPermalink

I am running a dictionary service

Jake Thoughts ā€” 01 Nov 2021 03:01:12 -0400* edited on Nov 02

I hope everyone had a good halloween! I, unfortunately, went to take a nap and when I woke up I missed halloween :(

Anyway, I am running a dictionary service which may interest some people. Basically, it uses the same dictionary that the wotd service uses but this time you can specify what word to look up. I should mention that because of the dictionary's age, some modern words like 'zoom', 'yeet', etc, will not be present.

It has an API!: $ curl -d "word=the word" https://jakesthoughts.xyz/dictionary

Because of that it is also very easy to impliment into a bash function:

function lookup() {
	curl -d "word=$1" https://jakesthoughts.xyz/dictionary
}

There are other dictionary programs that you can use, of course: Artha, Goldendict, ... there aren't actually that many. Hmm. I haven't used any of these programs so idk if they are good or not. Artha claims to be able to use offline copy which I would be interested in had I not already done this.

Jake you'll just be a creep and see what words I look up!

No - All I will see is someone accessing the url. If this is a major concern, you can download the source script yourself and run it locally.

The script. The dictionary I recommend (it is so old it falls OUT of copyright.)

You can directly visit https://jakesthoughts.xyz/dictionary but I am not applying any stylesheet to it (meaning black text on white background), so your eyeballs will melt if you got used to my current stylesheet. As for Gemini users... I haven't written this yet but I figure the easiest way to serve FCGI content would be with yet another CGI script that queries the FCGI script since Doppio (and I assume many other Gemini servers) don't do FCGI.

Enjoy!

Ok, I have written the script for Gemini users but unfortunately it is not as anonymous as I would like, since it uses GET. But you can look up words on the Capsule now~!