Skip to content

Generate random nonsense phrases from words in a file

License

Notifications You must be signed in to change notification settings

friedelschoen/bullshit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bullshit Generator

The Bullshit Generator is a program inspired by Plan 9's bullshit script. It generates random nonsense phases by combining words and phrases from a customizable data file, making it perfect for creating humorous or jargon-filled text.

Features

  • Randomized sentence generation using categories like:
    • Starting words
    • Suffixes
    • Protocols
    • Endings
  • Support for custom word files via the -f option or environment variables.
  • Generate multiple phrases with a single command.

Requirements

Installation

Clone the repository and build bullshit using the Go Compiler:

go build bullshit.go
  • 9front.txt does contain all words which are provided in 9front
  • bullshit.txt does contain an extended list of words for generating phases

Usage

./bullshit [-s] [-f file] [times]

Options

  • times: (Optional) The number of sentences to generate. Default is 1.
  • -f file: (Optional) Specify a custom data file. If omitted, the program uses:
    1. The path specified in the environment variable $BULLSHIT_FILE.
    2. The file $XDG_CONFIG_HOME/bullshit.txt or ~/.config/bullshit.txt.
    3. The file /usr/share/bullshit.txt.
  • -s: (Optional) Sort input records and print sorted file to stdout

Examples

Generate a Single Nonsense Phrase

./bullshit

Generate 5 Phrases

./bullshit 5

Use a Custom Word File

./bullshit -f custom_bullshit.txt

Set a Default File via Environment Variable

export BULLSHIT_FILE=/path/to/bullshit.txt
./bullshit

License

This project is licensed under the Zlib License. See the LICENSE file for details.

Credits

This program is inspired by the bullshit command from 9front's.

About

Generate random nonsense phrases from words in a file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published