Separate word lists for nouns, verbs, adjectives, etc

后端 未结 5 1969
眼角桃花
眼角桃花 2021-01-30 02:54

Usually word lists are 1 file that contains everything, but are there separately downloadable noun list, verb list, adjective list, etc?

I need them for English specific

5条回答
  •  甜味超标
    2021-01-30 03:22

    This is a highly ranked Google result, so I'm digging up this 2 year old question to provide a far better answer than the existing one.

    The "Kevin's Word Lists" page provides old lists from the year 2000, based on WordNet 1.6.

    You are far better off going to https://wordnet.princeton.edu/download/current-version and downloading WordNet 3.0 (the Database-only version) or whatever the latest version is when you're reading this.

    Parsing it is very simple; just apply a regex of "/^(\S+?)[\s%]/" to grab every word, and then replace all "_" (underscores) in the results with spaces. Finally, dump your results to whatever storage format you want. You'll be given separate lists of adjectives, adverbs, nouns, verbs and even a special (very useless/useful depending on what you're doing) list called "senses" which relates to our senses of smell, sight, hearing, etc, i.e. words such as "shirt" or "pungent".

    Enjoy! Remember to include their copyright notice if you're using it in a project.

提交回复
热议问题