Metadata-Version: 2.1
Name: lektor-natural-language
Version: 0.3.1
Summary: Adds NLTK based template filters.
Home-page: https://github.com/terminal-labs/lektor-natural-language
Author: Terminal Labs
Author-email: solutions@terminallabs.com
License: BSD-3-Clause
Keywords: Lektor plugin static-site nltk natrual-language jinja2 jinja filter
Platform: UNKNOWN
Classifier: Environment :: Plugins
Classifier: Environment :: Web Environment
Classifier: Framework :: Lektor
Classifier: License :: OSI Approved :: BSD License
Description-Content-Type: text/markdown
Requires-Dist: nltk
Requires-Dist: rake-nltk

## lektor-natural-language

This is a Lektor plugin that provides a few simple template filters with the Natural Language ToolKit (nltk).

This offers the following filters:

### `sentences_filter`

Accept a string of text and return a list of its sentences.

Usage: `{{ this.text|sentences }}`

### `firstsentences_filter`

Accept a string of text and return its the first sentence.

Usage: `{{ this.text|firstsentence }}`

### `sentences_filter`

Accept a string of text and return a list its keywords as determined by `nltk`'s `Rake`.

Usage: `{{ this.text|keywords }}`


