# Gregory Golberg, grisha@alum.mit.edu # 6.863 Spring 06, # Lab 2b, section 2.5 # Begin: N_ROOT V_ROOT DET PREP COMP ADJ DOP WHDET N: N_SUFFIX End V: V_SUFFIX Suffix: End N_ROOT: # We'll treat "who" as a N here, it's ok... who N "N[plural -]" poirot N "N[plural -]" solution N "N[plural -]" police N "N[plural +]" detective N "N[plural -]" case N "N[plural -]" gun N "N[plural -]" '' End None N_SUFFIX: +s Suffix "[plural +]" PREP: on End "P" in End "P" with End "P" to End "P" DET: the End "Det" a End "Det" an End "Det" some End "Det" # Adjectives ADJ: incompetent End "Adj" # DOP - do phrase DOP: did End "Dop" # Comp - for handling "that", etc. COMP: that End "Comp" # For section 2.3 WHDET: which End "WhDet" V_ROOT: # Vtran - transitive verb, takes exactly one object. # Vtran1 - transitive which optionally takes a 2nd argument (e.g., sent) # Vsbar - a verb that takes (optionally!) an S-bar as an argument send V "Vtran1[fin -]" sent V "Vtran1[fin +, tense past]" solve V "Vtran[fin -]" lose V "Vtran[fin -, plural +]" lost V "Vtran[fin +, tense past]" think V "Vsbar[fin -, plural +]" thought V "Vsbar[fin +, tense past]" believe V "Vsbar[fin -, plural +]" # Addition: handling "were" # We call it Vlink, for "linking verb", as per # http://www.arts.uottawa.ca/writcent/hypergrammar/link.html were V "Vlink[tense past]" V_SUFFIX: +ed Suffix "[fin +, tense past]" +s Suffix "[fin +, tense present, plural -]" #'' Suffix "" +er N "N" '' End None End: '#' Begin None