Skip to main content

Anora is a simple_tag for Django that determines whether or not a word should have an "a" or "an" in front of it. Adds either one of these depending on the phoentic value of the given text.

Project description

Anora
==========================
Anora is a Django template filter that determines whether or not a word should have an "a" or "an" in front of it. Adds either one of these depending on the phoenetic value of the given text. It will also automatically add one space before the text.

Install
-------

1. ``pip install anora``
2. Add ``anora`` to your ``INSTALLED_APPS``
3. Add ``{% load anora %}`` to the top of templates you wish to use these tags in.

Usage
-------
``{% load anora %}``

``I was taking a walk in the woods today. I came across {{ animal_type|anora }}.``

Possible outcomes from the above:
-------

I was taking a walk in the woods today. I came across a raccoon.

I was taking a walk in the woods today. I came across an owl.

Credits
-------
Original template filter can he found [here](http://djangosnippets.org/snippets/1519/).

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

anora-0.1.2.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file anora-0.1.2.tar.gz.

File metadata

  • Download URL: anora-0.1.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for anora-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4a9bee2d0b2a7afd819a477ec3ff9afcd6bf27b939166bd3e859d420913d48e5
MD5 052bed9dba79f48f61efffaf036cd238
BLAKE2b-256 bfb9bbc513642700dbf0b3bf05e389c9af65b7c0c2d93da40b6b3a03fb72d766

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