Menu

📰
0

Reddit - Please wait for verification

C#·/u/pyeri·2 days ago
#oN7W2KnQ
Reading 0:00
15s threshold

When I migrated from Linux to Windows few years ago due to work and profession reasons, one of the things I highly missed was the command line dict program which was as easy to install on Debian as sudo apt install dict. There were a few GUI ones like WordWeb, Artha, etc but I didn't like the idea of memory resident apps that occupied the taskbar and memory. CLI was efficient and ran only when needed for word look ups. Consequently, I wrote a similar tool called dict in C# using the open source WordNet database. WordNet is structured in a way that has core index files for each part-of-speech like index.noun, index.verb, etc. plus dedicated data files for each one of them. Looking up a word or term is a matter of seeking the index files to find exact matching offsets and use those offsets directly in data files to fetch the definitions or synonyms as needed. Writing this tool is both a great exercise in C# coding and also a way of ending up with a highly utilitarian daily driver.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More