Skip to main content

wordstream is a simple corpus of text associations and tools to use them. Feeding the corpus text will grow a stack of left to right word associations on a per word basis. Words are defined (for now) as the bits that sit between whitespace. The corpus can then be eaten: given a word, pop the top of its stack.

There are two interfaces to the corpus in the wordstream package: wordstream and dissociate. Additional applications of wordstream can also be imagined.

The wordstream source is at http://k0s.org/hg/wordstream

wordstream interface

An interactive interface for eating and feeding the corpus. Wordstream has a command line interface, wordstream, and a web interface usable by running paster serve wordstream.ini . In both cases, the usage is the same. From an initial corpus, the user types lines of text. wordstream will eat the corpus and print a response to the text and feed the user’s lines to the corpus

dissociate interface

Named after emacs’ M-x dissociated-press (try it!), dissociate will feed documents to a corpus, scramble the corpus (shuffle the stack order for each word), and output the corpus eating itself, selecting random words, eating their associations, and then eating the associations of the associations until the corpus is empty. Dissociate has a command line interface (install the software and run dissociate --help for usage), and a web interface usable via paster serve dissociate.ini.

Applications

While the wordstream corpus is a simple model, the basic idea can be used to

  • Thesaurus: By feeding the corpus synonyms, wordstream could be used as a thesaurus program. Synonymity could be indicated via either word count or by position towards the top of the stack. The thesaurus could be displayed as a web interface to allow automatic suggestions while writing

  • Writing analysis: The amount of text on the web is vast. Wordstream could be used to present what is being talked about most within a number of websites and what is associated to it.

  • Collaborative fiction: Since wordstream can use a collective corpus that is fed by interacting with it, several authors could simultaneously iteract with the wordstream web interface each feeding the collective corpus and literally eating each others’ words

Release files for wordstream 0.1.3

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

Source distribution (sdist)

Source distribution for wordstream 0.1.3
File Size Uploaded
wordstream-0.1.3.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wordstream 0.1.3
File Interpreter ABI Platform
wordstream-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / wordstream-0.1.3.tar.gz

Download URL wordstream-0.1.3.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d5c604cc5c076fc9ef258acb946ee7a96180643db52d412671af460cc16f01ce
BLAKE2b-256 checksum
How to use checksums
ed23a2aa9eaff40d0144c16cfdfb06aeb0e532c0ecdca894bb16f6b1393d86db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

Release files / wordstream-0.1.3-py3-none-any.whl

Download URL wordstream-0.1.3-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9da49038c7b99f01d49348ea7608e985e7c24bbbef906adc05667c319aafb24c
BLAKE2b-256 checksum
How to use checksums
fa438dabb90d7bd2e42528d240566a92a7715af86f66f3fed5dd3b72bc544d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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