# a small grammar to parse/generate sentences and obtain their parse tree frase(Soggetto,Verbo,Oggetto) --> soggetto(Soggetto), verbo(Verbo), oggetto(Oggetto). soggetto(Soggetto) --> articolo(Gender), agente(Gender, Soggetto). oggetto(Oggetto) --> articolo(Gender), oggetto2(Gender, Oggetto). articolo(male) --> [ il ]. articolo(female) --> [ la ]. agente(_, chirurgo) --> [ chirurgo ]. agente(female, elefantessa) --> [ elefantessa ]. agente(male, elefante) --> [ elefante ]. verbo(mangiare) --> [ mangiava ]. verbo(guardare) --> [ guardava ]. oggetto2( female, insalata ) --> [ insalata ]. oggetto2( male, cavolfiore ) --> [ cavolfiore ]. % TASK: add the number (plural, singular) to the rules