8

I'm looking for a file that is a wordlist and also is set up by type of word. For example something in this format

Nouns: {
    bus
    car
    deck
    elephant
    ...
}
Adjectives {
    awful
    bashful
    ...
}
Advervb {
    ...
}

Any ideas?

Abhay
  • 7,092
  • 3
  • 36
  • 50
qwertymk
  • 34,200
  • 28
  • 121
  • 184
  • See also: [stackoverflow.com/questions/2288953/Separate word lists for nouns, verbs, adjectives, etc](https://stackoverflow.com/questions/2288953/separate-word-lists-for-nouns-verbs-adjectives-etc). Could your question be a duplicate of the one I linked? – Luc Jan 15 '18 at 08:58

5 Answers5

6

The MOBY word list is almost exactly what you're looking for: http://icon.shef.ac.uk/Moby/mpos.html

This list also builds on the MOBY list: http://www.ashley-bovan.co.uk/words/partsofspeech.html

astine
  • 276
  • 2
  • 9
3

One problem is that the word type depends on usage and context. For example, 'root' can be a noun or verb.

On a Unix/Linux system with aspell installed, this will give you all the words in the dictionary:

aspell dump master

Finally, see the related question: Need free English dictionary or Corpus, ultimately for a MySQL database

Community
  • 1
  • 1
payne
  • 13,833
  • 5
  • 42
  • 49
1

Most flavors of linux ship with a file called dictionary. It's got all English words you might want, but they are not categorized.

rahul
  • 1,281
  • 2
  • 12
  • 29
  • 5
    Where is this `dictionary` file located? I'm aware of `words`. The words file is usually stored at `/usr/share/dict/words` or `/usr/dict/words`. – Craig McQueen Dec 26 '13 at 23:35
0

To obtain human readable output, you need to use ASPELL twice:

aspell -d en dump master | aspell -l en expand > words

at least according to: http://www.commandlinefu.com/commands/view/10619/dump-an-aspell-dictionary-as-a-word-list

Here is an example:

aspell -d en dump master | aspell -l en expand
...
abases
abbesses
abscess
abscess's
abscissa
abuser's
abusers
abuse's
abuses
abysses
...