For this exercise, you will create a small grammar from scratch using VisCCG. For your grammar, choose one of the following options:
If neither a language nor a particular domain jumps out at you, you can work with the sentences parsed and realized by the SHRDLU system. See the SHRDLU transcript for example sentences.
You should try to make sure that your grammar covers at least the following types of strings:
You should also handle at least one type of morphological behavior, e.g. books is book PL.
Your grammar should use expansions to reduce the amount of explicit specification that you must declare in the grammar. This can either be done to use inheritance or to deal with morphology.
You should have a testbed of at least 10 acceptable utterances and 5 unacceptable ones.
You should provide a write-up about your grammar that discusses the domain or language you chose, and the kinds of sentences and semantics that your grammar needs to cover. Point out any particularly interesting aspects of the domain or the language, like difficult ambiguities or highly agglutinative morphology. If you are working on a language other than English, please provide interlinearized glossed text when giving example sentences.
Discuss your grammar, briefly, noting anything that presented particular problems and whether you found any good solutions for them. Discuss how you used expansions.
Your submission should be added to the grammars in the OpenCCG wiki pages. Make sure to include your .ccg file as part of your hand-in, either in a link or as a <code> portion of your write-up, at the end. Comments in the file itself are very welcome. It should be possible for me to compile your file using ccg2xml and run your testbed of sentences on it.
To help with understanding OpenCCG and VisCCG, here are some resources to help you out.
Existing grammar writeups which should be useful for helping you complete this assignment:
If you are doing this exercise for a course, here is the rubric on which you’ll be scored:
Coverage: /20 Complexity of analysis: /20 Complexity of implementation: /20 Quality of write-up: /20 Overall impression: /20 ------------------------------------ Total: /100