💾 Archived View for station.martinrue.com › kevinsan › 64a6d5d2ad364e4d8f307514c87601da captured on 2024-07-09 at 02:19:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

➡️ Next capture (2024-08-18)

-=-=-=-=-=-=-

👽 kevinsan

I need a way to efficiently filter out common dictionary words from a list of strings, ideally using existing CLI tools or libraries.

2 years ago

Actions

👋 Join Station

5 Replies

👽 nfc

Might want to filter out words which are not nouns, after removing stop words. ntlk can get you part of speech. · 2 years ago

👽 akkartik

The keyword for this is "stop words". You can find lists of stop words online, and then filter them out using Python or `grep -vf`. · 2 years ago

👽 marginalia

Grab a word frequency list off somewhere (I think I've found them on wikipedia at times), plop into a file, read it into a set in python, match vs that? · 2 years ago

👽 kevinsan

@ethereal I have used aspell in the past, but its dictionaries are too comprehensive. I just want to throw out the most common English words. I'm looking at nltk and TextBlob in Python at the moment. I'm trying to extract 'interesting words' from bookmark titles. · 2 years ago

👽 ethereal

Don't most linux distros ship with a list of dictionary words, primarly for spellchecking? Maybe you could start from there. · 2 years ago