Skip to main content

Adds NLTK based template filters.

Project description

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 }}

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

lektor_natural_language-0.3.1-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lektor_natural_language-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: lektor_natural_language-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for lektor_natural_language-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1b3b039bf12a2887d8bedde8bc4d587f3dd8421af1cd33d74bc79225928e8aba
MD5 f19457ef145041136944a6f2d53437d3
BLAKE2b-256 e9651ab5774a105e4db0e5212de44963fc217b8d3027f67979cc8df8c45914a8

See more details on using hashes here.

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