Go to file Use this template
Chris Proctor e8f6f841ba Add gitignore 2024-09-05 15:23:44 -04:00
.commit_template Add commit template 2022-03-04 21:34:16 -05:00
.gitignore Add gitignore 2024-09-05 15:23:44 -04:00
README.md Initial commit 2022-02-27 18:51:59 -05:00
grammar.py Reformat grammar.py 2022-03-04 11:18:18 -05:00
grammatical_types.py Initial commit 2022-02-27 18:51:59 -05:00
poetry.lock Update pyproject metadata and poetry lockfile 2023-06-02 13:58:04 -04:00
poetry.py Initial commit 2022-02-27 18:51:59 -05:00
pyproject.toml Update pyproject metadata and poetry lockfile 2023-06-02 13:58:04 -04:00
types_notes.md Initial commit 2022-02-27 18:51:59 -05:00
vocabulary.py Initial commit 2022-02-27 18:51:59 -05:00
words.json Initial commit 2022-02-27 18:51:59 -05:00

README.md

Types Lab

In this lab, we learn about types by writing functions whose inputs and outputs are English parts of speech. Once you finish, you will be able to generate syntactically-correct phrases which you can use to write auto-poetry like:

Roses are red
Violets are blue
Evenings are poisonous
And so are you.

I used to have a formative scratch
Until i swapped it for an icy latch.

There once was a person named pete
Who owned an optical cleat.
He widely canvassed it,
And then he canvased it,
Until it turned into a beat.

Usage

  • vocabulary.py has a bunch of functions for picking random words. grammatical_types.pydefines types likeNoun, Adjective, and TransitiveVerb`.
  • grammar.py has a bunch of functions for combining and transforming grammatical types. These are unfinished; it's your job to write them.
  • poetry.py has functions for writing beautiful auto-poems. Once grammar.py is complete, try running python poetry.py.