An open API service indexing awesome lists of open source software.

https://github.com/vinodbaste/python_headline_style

This filter changes a given text to Title Caps, and attempts to be clever about SMALL words like a/an/the in the input. The list of "SMALL words" which are not capped comes from the New York Times Manual of Style, plus some others like 'vs' and 'v'.
https://github.com/vinodbaste/python_headline_style

library package python pythonpackage

Last synced: 11 months ago
JSON representation

This filter changes a given text to Title Caps, and attempts to be clever about SMALL words like a/an/the in the input. The list of "SMALL words" which are not capped comes from the New York Times Manual of Style, plus some others like 'vs' and 'v'.

Awesome Lists containing this project

README

          

headline_style
=========

This filter changes a given text to Title Caps, and attempts to be clever
about SMALL words like a/an/the in the input.
The list of "SMALL words" which are not capped comes from the New York
Times Manual of Style, plus some others like 'vs' and 'v'.

The filter employs some heuristics to guess abbreviations that don't need conversion.

+------------------+----------------+
| Original | Conversion |
+==================+================+
| this is a test | This Is a Test |
+------------------+----------------+
| THIS IS A TEST | This Is a Test |
+------------------+----------------+
| this is a TEST | This Is a TEST |
+------------------+----------------+

More examples and expected behavior for corner cases are available in the
`package test suite `__.

Issues, updates, pull requests, etc should be directed
`to github