Created
February 3, 2016 04:50
-
-
Save somewacko/6fc1ae14deed10d80acd to your computer and use it in GitHub Desktop.
A CFG definition for doge. wow.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# such grammar. very linguistics. wow. | |
# | |
# a context-free grammar of doge. | |
# | |
# much reference: the-toast.net/2014/02/06/linguist-explains-grammar-doge-wow | |
1 ROOT S | |
# ---- Sentences and doge phrases | |
# | |
# A sentence in doge typically consists of several successive "doge phrases" | |
# made up of two words -- a modifier and a subject -- and are completed with | |
# a terminator word to conclude a sentence. | |
3 S DP . S | |
1 S Term . | |
# Ratios are number of respective words in vocabulary. | |
22 DP Mod[n] Noun | |
7 DP Mod[v] Verb | |
11 DP Mod[a] Adj | |
0.5 DP Mod[rare,v] Verb | |
# ---- Terminators | |
# | |
# These words serve as conclusions to a sentence, intended to leave the | |
# recipient with a sense of wonder or bewilderment. | |
3 Term wow | |
1 Term amaze | |
1 Term excite | |
# ---- Modifiers | |
# | |
# Modifiers often begin two-word doge phrases, and are almost exclusively | |
# chosen from a small set of five words. | |
# Selectors for modifiers that can be applied to certain subjects. | |
3 Mod[a] Mod[a,n,v] | |
3 Mod[n] Mod[a,n,v] | |
1 Mod[n] Mod[n] | |
3 Mod[v] Mod[a,n,v] | |
1 Mod[v] Mod[n,v] | |
# The five modifiers, with [a|n|v] indicating which subjects they can modify. | |
1 Mod[a,n,v] such | |
1 Mod[a,n,v] so | |
1 Mod[a,n,v] much | |
1 Mod[n,v] very # "very" is ungrammatical doge when modifying an | |
# adjective, as it is too grammatically correct in | |
# English. | |
1 Mod[n] many # "many" indicates a plurality, and I would argue is | |
# ungrammatical doge to use for adjectives or verbs. | |
# I have yet to see usage to the contrary. | |
# More uncommon modifiers that allow for additional expression. | |
1 Mod[rare,v] do | |
1 Mod[rare,v] pls | |
# ---- Vocabulary | |
# | |
# Taken from a quick Google search on doge images. | |
1 Noun art | |
1 Noun cate | |
1 Noun cake | |
1 Noun computer | |
1 Noun hair | |
1 Noun heaven | |
1 Noun grammar | |
1 Noun language | |
1 Noun linguistics | |
1 Noun magic | |
1 Noun money | |
1 Noun mystery | |
1 Noun nlp | |
1 Noun opportunity | |
1 Noun pickle | |
1 Noun star | |
1 Noun stats | |
1 Noun skill | |
1 Noun space | |
1 Noun speed | |
1 Noun treasure | |
1 Noun wind | |
1 Noun wizard | |
1 Verb compute | |
1 Verb eat | |
1 Verb edit | |
1 Verb help | |
1 Verb impress | |
1 Verb pronounce | |
1 Verb want | |
1 Adj brave | |
1 Adj curious | |
1 Adj delishus | |
1 Adj fast | |
1 Adj impress | |
1 Adj intelligent | |
1 Adj probable | |
1 Adj scare | |
1 Adj skilled | |
1 Adj shiny | |
1 Adj yum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment