Skip to content
/ pfp Public

A tool for generating puns from a certain word

License

Notifications You must be signed in to change notification settings

Lumorti/pfp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PFP - Pun, Forrest, Pun!

A command line tool for generating puns from a certain word.

Usage

To view basic usage and the available flags use:

pfp --help

To run PFP to generate the complete list of puns from a word, ordered by quality:

pfp <word>

To also show info about where each pun comes from:

pfp -l <word>

To generate a single random (but at least quality 2) pun from a word:

pfp -r -m 1 -t 2 <word>

Installation

For easy access anywhere on your system it can be installed to /usr/local/share/pfp using the following:

sudo make install

To uninstall:

sudo make uninstall

Adding more phrases

The phrases folder initially comes with several files containing many common idioms, movie quotes and various other recognisable phrases. To add your own simply add to these files or make another file in that directory.

Use hashes to state where the following phrases come from, as follows:

# <Movie 1 Title>
<Quote 1 from movie 1>
<Quote 2 from movie 1>

# <Movie 2 Title>
<Quote 1 from movie 1>
<Quote 2 from movie 1>

# English Idiom
<Some English idiom>

# <Song Name>
<Famous lyric from this song>

About

A tool for generating puns from a certain word

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published