Skip to main content

Witter - generate text in the style of the document you provide.

Project description

Witter

What's Witter?

Witter accepts text input, splits it into sections, or "chains", and then works out which character is most likely to follow that "chain" whenever it appears in the source text.

Once it has analyzed the source text, it generates a number of random sample pieces of text based on the source text.

Because of the way it uses the source text, the text that it produces will be "in the style" of the original text.

It's worth noting that this isn't Machine Learning (ML), or any kind of Artificial Intelligence (AI). It's statistics.

How Do I Use Witter?

Run witter from within a virtual environment using the syntax:

witter --help

or from the command line using:

python -m witter --help

Both of these examples will display the command line options.

A simple example to get you started is:

In Windows or Linux, in a Python virtual environment, the following command will produce samples:

witter filepath.txt

or, if you want to use piping in Linux:

cat filepath.txt | witter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

witter-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

witter-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file witter-0.0.1.tar.gz.

File metadata

  • Download URL: witter-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.4 Linux/5.19.0-35-generic

File hashes

Hashes for witter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4835aaaef972106dbd64b919d94cb8d3cd548fc1d8af15a8e95de639ebab45cd
MD5 036dc4a1ce69840b7fb73d34f0d40a06
BLAKE2b-256 1a2b6c3d0788f4e13bbb8bf363df9087975905aa44df9401848782261ca84fde

See more details on using hashes here.

Provenance

File details

Details for the file witter-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: witter-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.4 Linux/5.19.0-35-generic

File hashes

Hashes for witter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12bb3d4382d76d0aa2270f6dee99bf89df378d6ad62967958a1905c0830a54f3
MD5 c5efccf42a0a042c6785d7ac0d526a4d
BLAKE2b-256 3e870dbca3d36853c5f98fbe5bab4abc069bd270277316a42013c0a328e77a26

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page