Naming Convention Validator
Naming Convention is used to provide an API for parsing and validating user text input.
This project will help with parsing and validating user input text for correctness.
Please note this project is still a work in progress and requires more work before the tool is robust. This project should not be used in production without testing beforehand.
Our goal:
Help users input text that follows a convention, is spelled correctly and reduces similar synonymous words.
An application that expects user text input may be incorrect, we aim to help users provide correct input, allowing for more structured and less “customised” data.
Below we list the feature set of this project, both currently supported and planned future features.
import namingcon.lib
txt = namingcon.lib.Text('badSpellling', 'word_any')
print txt.check()
print txt.best_guess()
print txt.corrections()
The namingConvention project comes with the following default naming styles:
soLongAndThanksForAllTheFish
SoLongAndThanksForAllTheFish
So_long_and_thanks_for_all_the_fish
so_long_and_thanks_for_all_the_fish
So_Long_And_Thanks_For_All_The_Fish
solongandthanksforallthefish
SOLONGANDTHANKSFORALLTHEFISH
See the Python PEP 8 for a description of naming styles.
You may also add more styles using config files.
Correctness is defined by: