Stupid sentence generator that creates pseudo philosophical quotes in the aesthetic of Virtual Self music videos.
It uses a (for now) simple context free grammar composed of:
Ν = { S, NP, VP, PP }
S = Sentence
VP = Verb Phrase
NP = Noun Phrase
PP = Prepositional Phrase
Σ = { DT, Vi, Vt, NN, IN, ADJ }
DT = Determiner
Vi = Intransitive Verb
Vt = Transitive Verb
NN = Noun
IN = Preposition
ADJ = Adjective
Check Grammar File
S → {NP, VP}
---
VP → {Vi}
VP → {Vt, NP}
VP → {VP, PP}
---
NP → {DT, NN}
NP → {DT, ADJ, NN}
---
PP → {IN, NP}
S = {S}
- Clone this repo
- Run
yarn
- Run
yarn start
- Check the
sentences
file created with 100 bullshit phrases
- Extend the grammar
- Add length parameter to define an approximated length of the sentence