Skip to main content

Description

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

Installation

  1. Install the package from the PyPi homepage (run setup.py 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. authorid.run()) by calling the package name.

Usage

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 authorid.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
4.41553119311
0.0563451817574
0.02229943808
16.8869087498
2.54817097682

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 authorid.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.

Metadata

Release files for authorid 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for authorid 0.0.1
File Size Uploaded Provenance Actions
authorid-0.0.1.zip 8.4 kB Without provenance Details for authorid-0.0.1.zip

Release files / authorid-0.0.1.zip

Download URL authorid-0.0.1.zip
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4a2bb54e5ebb27d742b0bc6e29ce1324a2ec05eac00d21d8eeba9b2e9df7ecc6
BLAKE2b-256 checksum
How to use checksums
e178a136e6a23bee451c124b6470e9c33e1265a7dde1d8c481bc37f03365cbf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for authorid 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page