This is an implementation of the algorithm published in the research paper "A computational approach to politeness with application to social factors" by Cristian et. el.
The link to research paper is http://nlp.stanford.edu/pubs/politeness.pdf
This is a work in progress. If you would like to contribute, please feel free to contact me.