From 416d00bf69333f89a484ebfe596617ab56c12ee9 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 4 Mar 2022 11:18:18 -0500 Subject: [PATCH] Reformat grammar.py --- grammar.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/grammar.py b/grammar.py index c22b2b0..11e4ba9 100644 --- a/grammar.py +++ b/grammar.py @@ -15,8 +15,6 @@ from grammatical_types import ( VerbPhrase, ) -# 3A: LOVE POEM - def pluralize(noun): "Noun -> PluralNoun" assert type(noun) == Noun @@ -25,55 +23,43 @@ def pluralize(noun): else: return PluralNoun(noun + 's') -# 3B: COUPLET - def noun_phrase(adjective, noun): "(Adjective, Noun) -> NounPhrase" #YOUR CODE GOES HERE - raise NotImplementedError("This function isn't done!") def determine_noun_phrase(determiner, noun_phrase): "(Determiner, NounPhrase) -> Determined NounPhrase" #YOUR CODE GOES HERE - raise NotImplementedError("This function isn't done!") def make_definite(noun_phrase): "NounPhrase -> DeterminedNounPhrase" #YOUR CODE GOES HERE - raise NotImplementedError("This function isn't done!") def make_indefinite(noun_phrase): "NounPhrase -> DeterminedNounPhrase" #YOUR CODE GOES HERE - raise NotImplementedError("This function isn't done!") -# 3C: LIMERICK - def verb_phrase(adverb, verb_phrase): "(Adverb, VerbPhrase) -> VerbPhrase" #YOUR CODE GOES HERE - raise NotImplementedError("This function isn't done!") def past_tense_transitive(verb): "TransitiveVerb -> PastTenseTransitiveVerb" #YOUR CODE GOES HERE - raise NotImplementedError("This function isn't done!") def past_tense_intransitive(verb): "TransitiveVerb -> PastTenseIntransitiveVerb" #YOUR CODE GOES HERE - raise NotImplementedError("This function isn't done!") def verb_phrase_transitive(verb, noun_phrase): "(TransitiveVerb, NounPhrase) -> VerbPhrase" #YOUR CODE GOES HERE - raise NotImplementedError("This function isn't done!")