logoalt Hacker News

Roget's Thesaurus

25 pointsby gregsadetskyyesterday at 4:29 AM4 commentsview on HN

Comments

somattoday at 12:24 PM

As a interesting tangent consider the data structure and the data behind a thesaurus. I was using the wordnet data for a project. https://wordnet.princeton.edu My first pass was to do the modern thing and just load the entire data into memory, it would fit with no problem. But when I noticed their screwball dataformat was designed to be dynamically accessed from disk I could not resist and rewrote the whole thing to do just that. Probably a waste of time but it was a lot of fun to write.

For what it is worth every reference word is coupled to a byte offset so lookups are a simple seek away. Today we would just jam it in a sqlite db and call it a day(salutes to sqlite for making this so easy) But I thought it was a really clever.

bradrntoday at 11:57 AM

I’ve been using https://the-saurus.org/ lately to get access to the hierarchy, since reading https://blog.plover.com/2026/08/02/ on its use a couple of weeks ago.

GJimtoday at 8:19 AM

In Blighty we prefer to use Rogers Profanisarus.

https://en.wikipedia.org/wiki/Roger%27s_Profanisaurus

We keep a copy in the office to use for naming projects.

drunkboxertoday at 9:21 AM

Can't mention Roget's Thesaurus without thinking of The Chaser.

https://www.youtube.com/watch?v=mn0ufJgtDko