This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A package that uses linguistic analysis in order to determine the author of a document. Currently version 0.0.1.


  1. Install the package from the PyPi homepage (run install)
  2. Import the package in your project (from authorid import authorid)
  3. You’re good to go! You can now run individual functions (i.e. by calling the package name.


authorid is a package meant to help analyze linguistic features of files and determine their potential author, provided a list of attributes. In order to invoke the primary utility, simply run and you will be prompted for a file containing the mystery text. After analysis is complete, the program will print a signature for that file, and prompt for a directory where .stats files are stored.

If this is the first time you are running authorid, exit out of the main program now, and copy the signature list to another file, ending with the signature .stats. A sample .stats file may look like the following:

first last

Remember to order the information correctly in order to ensure optimal results. Complete this step for various files, and when you have a directory containing your made .stats files (this process will be automated in 0.0.2), run once more, this time with a mystery file and providing the directory with your STATS files. The program will compare signatures with those in the list and provide a “best match” author.

Other utility functions are also available, which are listed below (also open sourced on GitHub):

def clean_up(s)
def average_word_length(text)
def type_token_ratio(text)
def hapax_legomana_ratio(text)
def split_on_separators(original, separators)
def average_sentence_length(text)
def avg_sentence_complexity(text)
def get_valid_filename(prompt)
def read_directory_name(prompt)
def compare_signatures(sig1, sig2, weight)
def read_signature(filename)
def run()

Note that text is a list of strings.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (8.4 kB) Copy SHA256 Checksum SHA256 Source Jun 26, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting