Skip to main content

Unigram Lexicon for Reverse Stem Lookups

Project description

Reverse Stemming (reversestem)

Stemming is the technique or method of reducing words with similar meaning into their “stem” or “root” form.

Reverse stemming takes a “stem” or “root” form and returns all the words that have this root as a basis.

Usage

from reversestem import unstem

unstem('aggreg')

outputs the stems grouped by lemma

{
   "aggregability":[],
   "aggregable":[],
   "aggregant":[
      "aggregants"
   ],
   "aggregate":[
      "aggregated",
      "aggregately",
      "aggregateness"
   ],
   "aggregating":[],
   "aggregation":[
      "aggregational"
   ],
   "aggregative":[
      "aggregatives",
      "aggregatively",
      "aggregativeness"
   ],
   "aggregativity":[],
   "aggregator":[]
}

Or a flat list can be produced like this

unstem('aggreg', flatten=True)

and this outputs a simple list

[
   "aggregativeness",
   "aggregational",
   "aggregability",
   "aggregateness",
   "aggregativity",
   "aggregatively",
   "aggregatives",
   "aggregating",
   "aggregation",
   "aggregately",
   "aggregative",
   "aggregated",
   "aggregable",
   "aggregants",
   "aggregator",
   "aggregate",
   "aggregant"
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reversestem-0.1.2.tar.gz (10.5 MB view hashes)

Uploaded Source

Built Distribution

reversestem-0.1.2-py3-none-any.whl (10.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page