Coding files from the course LT2214 computational syntax 2024.
For Chinese language, design a morphology for the main lexical types (N, A, V) with parameters and a couple of paradigms. Test it by implementing the lexicon in the MicroLang module. Define lincat N,A,V,V2 as well as the paradigms in MicroResource. Implement the lexicon part of files MicroLangZh.gf and MicroResZh.gf for Chinese. Define the linearization types of main phrasal categories - the remaining categories in MicroLang. Define the rest of the linearization rules in MicroLang. Implement MicroLangZh.gf and MicroResZh.gf for Chinese, with the lexicon part from above completed with syntax part.
gf
i /MicroLangZh.gf
i /MicroResZh.gf
gr generate Chinese grammar randomly
gr | l generate Chinese sentence randomly
if it shows MicroResZh.gf does not exist
i /yourFilePath/MicroLangZh.gf