Skip to content

juliaelman/anora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Django template filter that creates an "a" or "an" in front of your text based on it's phonetic value.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages