Extending the syntax scheme
To add a new syntacatic relation to arsgrammatica:
- Add the new label to
RelationLabelinarsgrammatica/models.py. - Describe when to use it in
SyntaxAnalysis’s docstring inarsgrammatica/latin_syntax_dspy.py, following the pattern of the existing relations (which token getsrelatedtoken1/relationship1, which gets the corresponding value on the other end). - Add a gold example exercising it to
tests/fixtures/gold_examples.pyand re-runpytestto confirm the models still validate before trying it against the real LM.