1. A method of automatically generating a lemma dictionary from a web resource, the method comprising: extracting a plurality of tokens from text-based documents within the web resource; generating a plurality of N-grams from the plurality of tokens; receiving one or more filter definitions that identify valid N-grams; filtering the plurality of N-grams using the one or more filter definitions to generate a lemma dictionary; and generating an ontology that comprises the lemma dictionary.