Skip to main content

Adds NLTK based template filters.

Project description


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

This offers the following filters:


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

Usage: {{ this.text|sentences }}


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

Usage: {{ this.text|firstsentence }}


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

Usage: {{ this.text|keywords }}

Project details

Download files

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

Files for lektor-natural-language, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size lektor_natural_language-0.3.1-py2.py3-none-any.whl (3.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page