Skip to content

Instantly share code, notes, and snippets.

@matteo-grella
Created February 12, 2020 22:09
Show Gist options
  • Save matteo-grella/5074aa0cd2d64a06a9c7a49a12c849a9 to your computer and use it in GitHub Desktop.
Save matteo-grella/5074aa0cd2d64a06a9c7a49a12c849a9 to your computer and use it in GitHub Desktop.
Italian Linguistic Constraints
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2011-2017 Matteo Grella <[email protected]> --
-- --
-- This work is licensed under a Creative Commons --
-- Attribution-ShareAlike 4.0 International License. --
-- --
-- This file contains a subset of the Italian Grammar expressed as a set --
-- of constraints, in line with WCDG formalism. The 243 constraints below --
-- are used in my most recent dependency parsing experiments which combine --
-- data-driven transition-based and constraint-based approaches. --
-- --
------------------------------------------------------------------------------
[
{
"description": "A coordinated token must be on the right of its governor",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "COORD2ND"}
},
"condition": {
"position-respect-governor": {"type": "Right"}
}
},
{
"description": "A coordinated token must have a direct coordinating conjunction descendant",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "COORD2ND"}
},
"condition": {
"any-direct-descendant": {"syn-partial": {"value": "COORD"}}
}
},
{
"description": "A part of a multi-word must follow its governor and be adjacent to it",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "CONTIN"}
},
"condition": {
"and": [
{"distance-from-governor": {"value": 1}},
{"position-respect-governor": {"type": "Right"}}
]
}
},
{
"description": "A proclit personal pronoun always precedes its governor",
"penalty": 0.0,
"premise": {"morphology": {"pos-partial": "PRON-PERS-PROCLIT"}},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "A proclitic personal pronoun cannot be a subject",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "PRON-PERS-PROCLIT"}
},
"condition": {
"not": {"syn-partial": {"value": "SUBJ"}}
}
},
{
"description": "If the dependent is a proclitic personal pronoun then the governor must be a verb",
"penalty": 0.0,
"premise": {
"dependent": {"morphology": {"pos-partial": "PRON-PERS-PROCLIT"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB"}}
}
},
{
"description": "A subject can be only a noun, a pronoun, an adjective, a number or a verb",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "SUBJ"}
},
"condition": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "VERB"}}
]
}
},
{
"description": "If the dependent is a subject then the governor must be a verb",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "SUBJ"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB"}}
}
},
{
"description": "If the dependent is a subject then the governor must be a verb with indicative, conditional, subjunctive or gerund mood",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "SUBJ"}}
},
"condition": {
"governor": {
"or": [
{"morphology": {"context": true, "mood": "IND"}},
{"morphology": {"context": true, "mood": "COND"}},
{"morphology": {"context": true, "mood": "SUBJ"}},
{"morphology": {"context": true, "mood": "GERUND"}}
]
}
}
},
{
"description": "If the governor is a verb with participle or gerund mood and the dependent is a modifier of type verb, then the dependent must have indicative, conditional, subjunctive or infinite mood",
"penalty": 0.0,
"premise": {
"governor": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{
"or": [
{"morphology": {"context": true, "mood": "GERUND"}},
{"morphology": {"context": true, "mood": "PART"}}
]
}
]
},
"dependent": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"syn-partial": {"value": "RMOD"}}
]
}
},
"condition": {
"dependent": {
"or": [
{"morphology": {"context": true, "mood": "IND"}},
{"morphology": {"context": true, "mood": "COND"}},
{"morphology": {"context": true, "mood": "SUBJ"}},
{"morphology": {"context": true, "mood": "INF"}}
]
}
}
},
{
"description": "If the governor is a verb and the dependent is a restrictive modifier, a subject or an object of type verb with mood indicative, conditional or subjunctive, then the dependent must have a connective among its direct descendant",
"penalty": 0.0,
"premise": {
"governor": {"morphology": {"pos-partial": "VERB"}},
"dependent": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{
"or": [
{"syn-partial": {"value": "SUBJ"}}
{"syn-partial": {"value": "OBJ"}},
{"syn-partial": {"value": "RMOD"}}
]
},
{
"or": [
{"morphology": {"context": true, "mood": "IND"}},
{"morphology": {"context": true, "mood": "COND"}},
{"morphology": {"context": true, "mood": "SUBJ"}}
]
}
]
}
},
"condition": {
"dependent": {"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
}
},
{
"description": "If the dependent is a noun coordinated with a governor of type adverb, then the dependent must have a connective",
"penalty": 0.0,
"premise": {
"governor": {"morphology": {"pos-partial": "ADV"}},
"dependent": {
"and": [
{"morphology": {"pos-partial": "NOUN"}},
{"syn-partial": {"value": "COORD2ND"}}
]
}
},
"condition": {
"dependent": {"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
}
},
{
"description": "If the dependent is an adjective and the governor is an adverb, then the dependent must have a connective",
"penalty": 0.0,
"premise": {
"governor": {"morphology": {"pos-partial": "ADV"}},
"dependent": {"morphology": {"pos-partial": "ADJ"}}
},
"condition": {
"dependent": {"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
}
},
{
"description": "If the dependent is an adjective and the governor is a verb, then the dependent must be a predicative complement",
"penalty": 0.0,
"premise": {
"governor": {"morphology": {"pos-partial": "VERB"}},
"dependent": {"morphology": {"pos-partial": "ADJ"}}
},
"condition": {
"dependent": {"syn-partial": {"value": "PREDCOMPL"}}
}
},
{
"description": "If the dependent is a noun coordinated with a governor of type verb not infinite, then the dependent must have a connective",
"penalty": 0.0,
"premise": {
"governor": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"not": {"morphology": {"context": true, "mood": "INF"}}}
]
},
"dependent": {
"and": [
{"morphology": {"pos-partial": "NOUN"}},
{"syn-partial": {"value": "COORD2ND"}}
]
}
},
"condition": {
"dependent": {"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
}
},
{
"description": "If the dependent is a noun with a connettive and coordinated with a governor of type verb infinite, then the governor must have a connective too",
"penalty": 0.0,
"premise": {
"governor": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"context": true, "mood": "INF"}}
]
},
"dependent": {
"and": [
{"syn-partial": {"value": "COORD2ND"}},
{"morphology": {"pos-partial": "NOUN"}},
{"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
]
}
},
"condition": {
"governor": {"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
}
},
{
"description": "If the dependent is a verb with imperative mood, it must be an object or the top",
"penalty": 0.0,
"premise": {
"morphology": {"context": true, "pos-partial": "VERB", "mood": "IMPER"}
},
"condition": {
"or": [
{"syn-partial": {"value": "TOP"}},
{"syn-partial": {"value": "OBJ"}}
]
}
},
{
"description": "If the dependent is an adjective then the governor cannot be a relative pronoun",
"penalty": 0.0,
"premise": {
"dependent": {
"morphology": {"pos-partial": "ADJ"}
}
},
"condition": {
"governor": {"not": {"morphology": {"pos-partial": "PRON-RELAT"}}}
}
},
{
"description": "If the dependent is an adjective demonstrative, indefinite, exclamative, interrogative, possessive, ordinal or qualifying post-nominal then the governor must be a noun",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "ADJ"}},
{
"or": [
{"morphology": {"pos-partial": "ADJ-DEMONS"}},
{"morphology": {"pos-partial": "ADJ-INDEF"}},
{"morphology": {"pos-partial": "ADJ-EXCLAM"}},
{"morphology": {"pos-partial": "ADJ-INTERR"}},
{"morphology": {"pos-partial": "ADJ-POSS"}},
{"morphology": {"pos-partial": "ADJ-ORDIN"}}
{"morphology": {"pos-partial": "ADJ-QUALIF-POST"}},
]
}
]
}
},
"condition": {
"governor": {"morphology": {"pos-partial": "NOUN"}}
}
},
{
"description": "An adjective qualifying post-nominal must be a right dependent",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "ADJ-QUALIF-POST"}
},
"condition": {
"position-respect-governor": {"type": "Right"}
}
},
{
"description": "An exclamative adjective must be a left dependent",
"penalty": 0.0,
"premise": {"morphology": {"pos-partial": "ADJ-EXCLAM"}},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "If the dependent is a connective and the governor is an adjective then the governor must be a qualifying adjective",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "CONN"}},
"governor": {"morphology": {"pos-partial": "ADJ"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "ADJ-QUALIF"}}
}
},
{
"description": "If the dependent is an adjective then the governor cannot be an adjective except if it is a coordinated or it has the same lemma (TODO: exceptions like 'blu cobalto')",
"penalty": 0.0,
"premise": {
"governor": {"morphology": {"pos-partial": "ADJ"}}
},
"condition": {
"dependent": {
"or": [
{"syn-partial": {"value": "COORD2ND"}},
{"not": {"morphology": {"pos-partial": "ADJ"}}},
{"agreement-with-governor": {"properties": ["lemma"]}}
]
}
}
},
{
"description": "An adjective can have only adverbs, connectives or coordinating conjunctions as left dependents",
"penalty": 0.0,
"premise": {
"dependent": {"position-respect-governor": {"type": "Left"}},
"governor": {"morphology": {"pos-partial": "ADJ"}}
},
"condition": {
"dependent": {
"or": [
{"morphology": {"pos-partial": "ADV"}},
{"syn-partial": {"value": "CONN"}},
{"syn-partial": {"value": "COORD"}}
]
}
}
},
{
"description": "If the dependent is a part of a multi-word then the governor must have its same POS and lemma",
"penalty": 0.0,
"premise": {
"governor": {"morphology": {"pos-partial": "ADJ"}}
},
"condition": {
"dependent": {
"or": [
{"not": {"morphology": {"pos-partial": "ADJ"}}},
{"agreement-with-governor": {"properties": ["lemma"]}}
]
}
}
},
{
"description": "A predicative complement can be only a noun, a pronoun (not interrogative nor proclitic personal), an adjective, a number or a verb",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "PREDCOMPL"}
},
"condition": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{
"and": [
{"morphology": {"pos-partial": "PRON"}},
{"not": {"morphology": {"pos-partial": "PRON-INTERR"}}},
{"not": {"morphology": {"pos-partial": "PRON-RELAT"}}},
{"not": {"morphology": {"pos-partial": "PRON-PERS-PROCLIT"}}}
]
},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NUM"}}
]
}
},
{
"description": "An apposition must be on the right of its governor",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "APPOSITION"}
},
"condition": {
"position-respect-governor": {"type": "Right"}
}
},
{
"description": "An apposition can be only a noun or a pronoun",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "APPOSITION"}
},
"condition": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}}
]
}
},
{
"description": "A relative pronoun at the right of its governor must have an oblique case",
"penalty": 0.0,
"premise": {
"and": [
{"morphology": {"pos-partial": "PRON-RELAT"}},
{"position-respect-governor": {"type": "Right"}}
]
},
"condition": {
"and": [
{"not": {"morphology": {"case": "SUBJ"}}},
{"not": {"morphology": {"case": "OBJ"}}},
{"not": {"morphology": {"case": "VOC"}}}
]
}
},
{
"description": "A relative pronoun must have a relative clause among its ancestors",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "PRON-RELAT"}
},
"condition": {
"any-ancestor": {"syn-partial": {"value": "RELCL"}}
}
},
{
"description": "An auxiliary must be a verb",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "AUX"}
},
"condition": {
"morphology": {"pos-partial": "VERB"}
}
},
{
"description": "An auxiliary must be on the left of its governor",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "AUX"}
},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "An auxiliary can only have left AUX dependents",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "AUX"}
},
"condition": {
"all-direct-descendants": {
"and": [
{"position-respect-governor": {"type": "Left"}},
{"syn-partial": {"value": "AUX"}}
]
}
}
},
{
"description": "A connective can be only a preposition or a subordinant conjunction",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "CONN"}
},
"condition": {
"or": [
{"morphology": {"pos-partial": "PREP"}},
{"morphology": {"pos-partial": "CONJ-SUBORD"}}
]
}
},
{
"description": "A connective must be on the left of its governor",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "CONN"}
},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "A part of a denominative multi-word must be a proper noun",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "CONTIN-DENOM"}
},
"condition": {
"morphology": {"pos-partial": "NOUN-PROPER"}
}
},
{
"description": "If the dependent is part of a denominative multi-word than its governor must be a proper noun",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "CONTIN-DENOM"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "NOUN-PROPER"}}
}
},
{
"description": "All the dependents of a part of a denominative multi-word must be parts of a denominative multi-word",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "CONTIN-DENOM"}
},
"condition": {
"all-direct-descendants": {"syn-partial": {"value": "CONTIN-DENOM"}}
}
},
{
"description": "All the dependents of a part of a locution must be parts of a locution",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "CONTIN-LOCUT"}
},
"condition": {
"all-direct-descendants": {"syn-partial": {"value": "CONTIN-LOCUT"}}
}
},
{
"description": "A part of a locution must have the same lemma and POS of its governor",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "CONTIN-LOCUT"}
},
"condition": {
"agreement-with-governor": {"properties": ["pos"]}
}
},
{
"description": "An extra object must be a proclitic personal pronoun",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "EXTRAOBJ"}
},
"condition": {
"morphology": {"pos-partial": "PRON-PERS-PROCLIT"}
}
},
{
"description": "An extra object cannot have lemma 'si'",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "EXTRAOBJ"}
},
"condition": {
"not": {"morphology": {"lemma": "si"}}
}
},
{
"description": "An empty complement must be a proclitic personal pronoun with lemma 'si'",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "EMPTYCOMPL"}
},
"condition": {
"morphology": {"pos-partial": "PRON-PERS-PROCLIT", "lemma": "si"}
}
},
{
"description": "A predicative complement cannot have lemma 'si'",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "PREDCOMPL"}
},
"condition": {
"not": {"morphology": {"lemma": "si"}}
}
},
{
"description": "An extra subject must be a pronoun",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "EXTRASUBJ"}
},
"condition": {
"morphology": {"pos-partial": "PRON"}
}
},
{
"description": "A separator must be punctuation",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "SEPARATOR"}
},
"condition": {
"morphology": {"pos-partial": "PUNCT"}
}
},
{
"description": "A restrictive modifier can be only a noun, a pronoun, an adjective, an adverb, a number or a verb",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "RMOD"}
},
"condition": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "ADV"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "VERB"}}
]
}
},
{
"description": "If a restrictive modifier is a left dependent then the governor can be only a noun, a pronoun, an adjective, an adverb, a number, a verb, a predeterminer, punctuation or a date",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"syn-partial": {"value": "RMOD"}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "ADV"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "PREDET"}},
{"morphology": {"pos-partial": "PUNCT"}},
{"morphology": {"pos-partial": "DATE"}}
]
}
}
},
{
"description": "A direct object can be only a noun, a pronoun, an adjective, a number or a verb",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "OBJ"}
},
"condition": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "VERB"}}
]
}
},
{
"description": "A preposition must be a connective on the left of its governor or a part of a multi-word",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "PREP"}
},
"condition": {
"or": [
{"syn-partial": {"value": "CONTIN"}},
{
"and": [
{"syn-partial": {"value": "CONN"}},
{"position-respect-governor": {"type": "Left"}}
]
}
],
}
},
{
"description": "The governor of a preposition which is not part of a multi-word can only be a noun, a pronoun, an adjective a number, a verb, a date or an hour",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "PREP"}},
{"not": {"syn-partial": {"value": "CONTIN"}}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "DATE"}},
{"morphology": {"pos-partial": "HOUR"}}
]
}
}
},
{
"description": "A conjunction can be only a connective, a coordinator, a coordinated or a part of a multi-word",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "CONJ"}
},
"condition": {
"or": [
{"syn-partial": {"value": "CONN"}},
{"syn-partial": {"value": "COORD"}},
{"syn-partial": {"value": "COORD2ND"}},
{"syn-partial": {"value": "CONTIN"}}
]
}
},
{
"description": "A coordinating conjunction can be only punctuation or a conjunction",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "COORD"}
},
"condition": {
"or": [
{"morphology": {"pos-partial": "PUNCT"}},
{"morphology": {"pos-partial": "CONJ-COORD"}}
]
}
},
{
"description": "A determiner must be an article",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "DET"}
},
"condition": {
"morphology": {"pos-partial": "ART"}
}
},
{
"description": "A determiner must be on the left of its governor",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "DET"}
},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "An article must be a determiner",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "ART"}
},
"condition": {
"syn-partial": {"value": "DET"}
}
},
{
"description": "An article must be on the left of its governor",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "ART"}
},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "If the dependent is an article then its governor must be a noun, a pronoun, a number, an infinite verb, an adjective or a date",
"penalty": 0.0,
"premise": {
"dependent": {"morphology": {"pos-partial": "ART"}}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"context": true, "pos-partial": "VERB", "mood": "INF"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "DATE"}}
]
}
}
},
{
"description": "A coordinating conjunction must be on the left of its governor",
"penalty": 0.0,
"premise": {
"syn-partial": {"value": "COORD"}
},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "An interrogative adjective must be on the left of its governor",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "ADJ-INTERR"}
},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "A conjunction which is not part of a multi-word must be on the left of its governor",
"penalty": 0.0,
"premise": {
"and": [
{"morphology": {"pos-partial": "CONJ"}},
{"not": {"syn-partial": {"value": "CONTIN"}}}
]
},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "A token with lemma 'ma' must be a conjunction",
"penalty": 0.0,
"premise": {
"morphology": {"lemma": "ma"}
},
"condition": {
"morphology": {"pos-partial": "CONJ"}
}
},
{
"description": "A token with lemma 'in' cannot be an adverb",
"penalty": 0.0,
"premise": {
"morphology": {"lemma": "in"}
},
"condition": {
"not": {"morphology": {"pos-partial": "ADV"}}
}
},
{
"description": "An adjective with lemma 'in' must be at the right of its governor and at a maximum distance of 2 positions",
"penalty": 0.0,
"premise": {
"morphology": {"lemma": "in", "pos-partial": "ADJ"}
},
"condition": {
"and": [
{"position-respect-governor": {"type": "Right"}},
{"or": [{"distance-from-governor": {"value": 1}}, {"distance-from-governor": {"value": 2}}]}
]
}
},
{
"description": "If the dependent has lemma 'più' and it is on the right then the governor cannot be a noun",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"lemma": "più"}},
{"position-respect-governor": {"type": "Right"}}
]
}
},
"condition": {
"governor": {"not": {"morphology": {"pos-partial": "NOUN"}}}
}
},
{
"description": "A token with lemma 'che cosa' can be only an exclamative or an interrogative adjective",
"penalty": 0.0,
"premise": {
"morphology": {"lemma": "che cosa"}
},
"condition": {
"or": [
{"morphology": {"pos-partial": "ADJ-EXCLAM"}},
{"morphology": {"pos-partial": "ADJ-INTERR"}}
]
}
},
{
"description": "An adjective with lemma 'fu' must be on the left of its governor",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "ADJ", "lemma": "fu"}
},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "A negative adverb with lemma 'non' must be on the left of its governor",
"penalty": 0.0,
"premise": {
"morphology": {"pos-partial": "ADV-NEG", "lemma": "non"}
},
"condition": {
"position-respect-governor": {"type": "Left"}
}
},
{
"description": "If the dependent is a subject then its governor must be a verb",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "SUBJ"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB"}}
}
},
{
"description": "If the dependent is a subject then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "SUBJ"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "SUBJ"}}}}
}
},
{
"description": "If the dependent is an object then its governor must be a verb",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "OBJ"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB"}}
}
},
{
"description": "If the dependent is an object then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "OBJ"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "OBJ"}}}}
}
},
{
"description": "If the dependent is an object at the left of its governor then the governor must be a verb with indicative, conditional or subjunctive mood",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"syn-partial": {"value": "OBJ"}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"context": true, "mood": "IND"}},
{"morphology": {"context": true, "mood": "COND"}},
{"morphology": {"context": true, "mood": "SUBJ"}}
]
}
}
},
{
"description": "If the dependent is an auxiliary then its governor must be a verb",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "AUX"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB"}}
}
},
{
"description": "If the dependent is a passive or tense auxiliary then its governor must be a participle verb",
"penalty": 0.0,
"premise": {
"dependent": {"or":
[
{"syn-partial": {"value": "AUX-TENSE"}},
{"syn-partial": {"value": "AUX-PASSIVE"}}
]
}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB", "mood": "PART", "tense": "PAST"}}
}
},
{
"description": "If the dependent is a progressive auxiliary then its governor must be a gerundive verb",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "AUX-PROGRESSIVE"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB", "mood": "GERUND"}}
}
},
{
"description": "If the dependent is an auxiliary then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "AUX"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "AUX"}}}}
}
},
{
"description": "If the dependent is a present participle verb then the governor must be a noun",
"penalty": 0.0,
"premise": {
"dependent": {"morphology": {"pos-partial": "VERB", "mood": "PART", "tense": "PRESENT"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "NOUN"}}
}
},
{
"description": "If the dependent is an determiner then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "DET"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "DET"}}}}
}
},
{
"description": "If the dependent is a connective then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "CONN"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "CONN"}}}}
}
},
{
"description": "If the dependent is a coordinator then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "COORD"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "COORD"}}}}
}
},
{
"description": "If the dependent is a coordinated then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "COORD2ND"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "COORD2ND"}}}}
}
},
{
"description": "If the dependent is a predicative complement then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "PREDCOMPL"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "PREDCOMPL"}}}}
}
},
{
"description": "If the dependent is part of a multi-word then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "CONTIN"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "CONTIN"}}}}
}
},
{
"description": "If the dependent is an extra object then its governor must be a verb",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "EXTRAOBJ"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB"}}
}
},
{
"description": "If the dependent is an extra subject then its governor must be a verb",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "EXTRASUBJ"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB"}}
}
},
{
"description": "If the dependent is a relative clause then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn": {"value": "RELCL"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn": {"value": "RELCL"}}}}
}
},
{
"description": "An explicit relative clause cannot have a participle mood",
"penalty": 0.0,
"premise": {"syn": {"value": "RELCL"}},
"condition": {"not": {"morphology": {"context": true, "pos-partial": "VERB", "mood": "PART"}}}
},
{
"description": "If the dependent is a relative clause then the governor must be a noun, an adjective, a pronoun or a number",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "RELCL"}}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}}
]
}
}
},
{
"description": "If the dependent is a relative clause and the governor is not a double relative pronoun then the dependent must have a relative pronoun as desendant",
"penalty": 0.0,
"premise": {
"dependent": {"syn": {"value": "RELCL"}},
"governor": {"not": {"morphology": {"pos-partial": "PRON-RELAT-DOUBLE"}}}
},
"condition": {
"dependent": {"any-descendant": {"morphology": {"pos-partial": "PRON-RELAT"}}}
}
},
{
"description": "If the dependent is an apposition then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "APPOSITION"}}
},
"condition": {
"governor": {"count-direct-descendants": {"value": 1, "condition": {"syn-partial": {"value": "APPOSITION"}}}}
}
},
{
"description": "If the dependent is an empty complement then its governor must be a verb",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "EMPTYCOMPL"}}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB"}}
}
},
{
"description": "If the dependent is an empty complement with lemma different from 'ne' then it must be the only one of its governor",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"syn-partial": {"value": "EMPTYCOMPL"}},
{"not": {"morphology": {"lemma": "ne"}}}
]
}
},
"condition": {
"governor": {
"count-direct-descendants": {
"value": 1,
"condition": {
"and": [
{"syn-partial": {"value": "EMPTYCOMPL"}},
{"not": {"morphology": {"lemma": "ne"}}}
]
}
}
}
}
},
{
"description": "If the dependent is a coordinating conjunction then its governor can be only a coordinated or the top",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "COORD"}}
},
"condition": {
"governor": {
"or":[
{"syn-partial": {"value": "COORD2ND"}},
{"syn-partial": {"value": "TOP"}}
]
}
}
},
{
"description": "If the dependent is a connective then its governor can be only a restrictive modifier, a coordinated, the top or a clausal object",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "CONN"}}
},
"condition": {
"governor": {
"or":[
{"syn-partial": {"value": "RMOD"}},
{"syn-partial": {"value": "TOP"}},
{"syn-partial": {"value": "COORD2ND"}},
{
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"syn-partial": {"value": "OBJ"}}
]
}
]
}
}
},
{
"description": "If the dependent is a coordinated adverb then its governor cannot be a noun",
"penalty": 0.0,
"premise": {
"dependent": {
"and":[
{"syn-partial": {"value": "COORD2ND"}},
{"morphology": {"pos-partial": "ADV"}}
]
}
},
"condition": {
"governor": {"not": {"morphology": {"pos-partial": "NOUN"}}}
}
},
{
"description": "If the dependent is a coordinated interrogative pronoun then its governor must be an interrogative pronoun too",
"penalty": 0.0,
"premise": {
"dependent": {
"and":[
{"syn-partial": {"value": "COORD2ND"}},
{"morphology": {"pos-partial": "PRON-INTERR"}}
]
}
},
"condition": {
"governor": {"morphology": {"pos-partial": "PRON-INTERR"}}
}
},
{
"description": "If the dependent is a phrasal word then its governor must be a phrasal word or a verb",
"penalty": 0.0,
"premise": {
"dependent": {
"and":[
{"syn-partial": {"value": "COORD2ND"}},
{"morphology": {"pos-partial": "PHRASE"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "PHRASE"}},
{"morphology": {"pos-partial": "VERB"}}
]
}
}
},
{
"description": "If the dependent is a possessive pronoun then its governor must be a noun, an adjective, a pronoun, a number or a phrasal word",
"penalty": 0.0,
"premise": {
"dependent": {
"and":[
{"morphology": {"pos-partial": "PRON-POSS"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "PHRASE"}}
]
}
}
},
{
"description": "A connective cannot have a subject nor an object of type noun, pronoun, adjective or number as governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "CONN"}}
},
"condition": {
"governor": {
"not": {
"and": [
{
"or": [
{"syn-partial": {"value": "SUBJ"}},
{"syn-partial": {"value": "OBJ"}}
]
},
{
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}}
]
}
]
}
}
}
},
{
"description": "A connective cannot have an apposition nor a predicative complement as governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "CONN"}}
},
"condition": {
"governor": {
"not": {
"or": [
{"syn-partial": {"value": "APPOSITION"}},
{"syn-partial": {"value": "PREDCOMPL"}}
]
}
}
}
},
{
"description": "The dependents of a part of a multi-word must be all parts of a multi-word",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "CONN"}}
},
"condition": {
"governor": {
"not": {
"or": [
{"syn-partial": {"value": "APPOSITION"}},
{"syn-partial": {"value": "PREDCOMPL"}}
]
}
}
}
},
{
"description": "If the dependent is an extra object then the governor must have an object among its direct descendant",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "EXTRAOBJ"}}
},
"condition": {
"governor": {"any-direct-descendant": {"syn-partial": {"value": "OBJ"}}}
}
},
{
"description": "If the dependent is an extra subject and the governor is not a reduced relative clause then the governor must have a subject among its direct descendant",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "EXTRASUBJ"}},
"governor": {"not": {"syn-partial": {"value": "RELCL-REDUC"}}}
},
"condition": {
"governor": {"any-direct-descendant": {"syn-partial": {"value": "SUBJ"}}}
}
},
{
"description": "If a number restrictive modifier is a left dependent and it has a connective dependent, then its governor must be a verb",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "NUM"}},
{"syn-partial": {"value": "RMOD"}},
{"any-direct-descendant": {"syn-partial": {"value": "CONN"}}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {"morphology": {"pos-partial": "VERB"}}
}
},
{
"description": "If a verb restrictive modifier has a connective dependent with lemma 'di' or 'che', then its governor cannot be a verb",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"syn-partial": {"value": "RMOD"}},
{
"any-direct-descendant": {
"and": [
{"syn-partial": {"value": "CONN"}},
{"or": [{"morphology": {"lemma": "di"}}, {"morphology": {"lemma": "che"}}]}
]
}
}
]
}
},
"condition": {
"governor": {"not": {"morphology": {"pos-partial": "VERB"}}}
}
},
{
"description": "If a verb restrictive modifier has a connective dependent with lemma 'perché', then it must be on the right of its governor",
"penalty": 0.0,
"premise": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"syn-partial": {"value": "RMOD"}},
{
"any-direct-descendant": {
"and": [
{"syn-partial": {"value": "CONN"}},
{"morphology": {"lemma": "perché"}}
]
}
}
]
},
"condition": {
"position-respect-governor": {"type": "Right"}
}
},
{
"description": "An adjective that is the left dependent of a noun can have only adverbs as dependents",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "ADJ"}},
{"position-respect-governor": {"type": "Left"}}
]
},
"governor": {
"morphology": {"pos-partial": "NOUN"}
}
},
"condition": {
"dependent": {
"all-direct-descendants": {"morphology": {"pos-partial": "ADV"}}
}
}
},
{
"description": "The top token must have the TOP dependency",
"penalty": 0.0,
"premise": {
"position-respect-governor": {"type": "Top"}
},
"condition": {
"syn": {"value": "TOP"}
}
},
{
"description": "Only the top token can have the TOP dependency",
"penalty": 0.0,
"premise": {
"syn": {"value": "TOP"}
},
"condition": {
"position-respect-governor": {"type": "Top"}
}
},
{
"description": "If a variant of a proclitic personal pronoun has the same governor of the proclitic 'lo, la, li, le, ne' then these particels must follow it",
"penalty": 0.0,
"premise": {
"dependent": {"morphology": {"pos": "PRON-PERS-PROCLIT-VARIANT"}},
"governor": {
"any-direct-descendant": {
"or": [
{"morphology": {"lemma": "lo", "pos": "PRON-PERS-PROCLIT"}},
{"morphology": {"lemma": "la", "pos": "PRON-PERS-PROCLIT"}},
{"morphology": {"lemma": "li", "pos": "PRON-PERS-PROCLIT"}},
{"morphology": {"lemma": "le", "pos": "PRON-PERS-PROCLIT"}},
{"morphology": {"lemma": "ne", "pos": "PRON-PERS-PROCLIT"}}
]
}
}
},
"condition": {
"governor": {
"match-direct-descendants": {
"target": {
"morphology": {"pos": "PRON-PERS-PROCLIT-VARIANT"}
},
"reference": {
"or": [
{"morphology": {"lemma": "lo", "pos": "PRON-PERS-PROCLIT"}},
{"morphology": {"lemma": "la", "pos": "PRON-PERS-PROCLIT"}},
{"morphology": {"lemma": "li", "pos": "PRON-PERS-PROCLIT"}},
{"morphology": {"lemma": "le", "pos": "PRON-PERS-PROCLIT"}},
{"morphology": {"lemma": "ne", "pos": "PRON-PERS-PROCLIT"}}
]
},
"condition": {
"tokens-relative-position": {"type": "Left"}
}
}
}
}
},
{
"description": "If there is a connective among the dependents of a governor, all the other dependents that are not a coordinating conjunction nor an adverb must be on the right of that connective",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "CONN"}},
"governor": {
"any-direct-descendant": {
"not": {
"or": [
{"syn-partial": {"value": "CONN"}},
{"syn-partial": {"value": "COORD"}},
{"morphology": {"pos-partial": "ADV"}}
]
}
}
}
},
"condition": {
"governor": {
"match-direct-descendants": {
"target": {
"not": {
"or": [
{"syn-partial": {"value": "CONN"}},
{"syn-partial": {"value": "COORD"}},
{"morphology": {"pos-partial": "ADV"}}
]
}
},
"reference": {
"syn-partial": {"value": "CONN"}
},
"condition": {
"tokens-relative-position": {"type": "Right"}
}
}
}
}
},
{
"description": "If there is a determiner among the dependents of a governor, all the other dependents that are not a predeterminer, a coordinating conjunction, a connective nor a restrictive modifier adverb must be on the right of that determiner",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "DET"}},
"governor": {
"any-direct-descendant": {
"not": {
"or": [
{"syn-partial": {"value": "DET"}},
{"morphology": {"pos-partial": "PREDET"}},
{"syn-partial": {"value": "COORD"}},
{"syn-partial": {"value": "CONN"}},
{
"and": [
{"syn-partial": {"value": "RMOD"}},
{"morphology": {"pos-partial": "ADV"}}
]
}
]
}
}
}
},
"condition": {
"governor": {
"match-direct-descendants": {
"target": {
"not": {
"or": [
{"syn-partial": {"value": "DET"}},
{"morphology": {"pos-partial": "PREDET"}},
{"syn-partial": {"value": "COORD"}},
{"syn-partial": {"value": "CONN"}},
{
"and": [
{"syn-partial": {"value": "RMOD"}},
{"morphology": {"pos-partial": "ADV"}}
]
}
]
}
},
"reference": {
"syn-partial": {"value": "DET"}
},
"condition": {
"tokens-relative-position": {"type": "Right"}
}
}
}
}
},
{
"description": "If there is a relative pronoun among the dependents of a governor, all the other dependents that are not a coordinating conjunctions must be on the right of that relative pronoun",
"penalty": 0.0,
"premise": {
"dependent": {"morphology": {"pos-partial": "PRON-RELAT"}},
"governor": {
"any-direct-descendant": {
"not": {
"or": [
{"morphology": {"pos-partial": "PRON-RELAT"}},
{"syn-partial": {"value": "COORD"}},
]
}
}
}
},
"condition": {
"governor": {
"match-direct-descendants": {
"target": {
"not": {
"or": [
{"morphology": {"pos-partial": "PRON-RELAT"}},
{"syn-partial": {"value": "COORD"}},
]
}
},
"reference": {
"morphology": {"pos-partial": "PRON-RELAT"}
},
"condition": {
"tokens-relative-position": {"type": "Right"}
}
}
}
}
},
{
"description": "If there is a coordinating conjunction among the dependents of a governor, all the other dependents must be on the right of that coordinating conjunction",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "COORD"}},
"governor": {
"any-direct-descendant": {
"not": {
"syn-partial": {"value": "COORD"}
}
}
}
},
"condition": {
"governor": {
"match-direct-descendants": {
"target": {
"not": {
"syn-partial": {"value": "COORD"}
}
},
"reference": {
"syn-partial": {"value": "COORD"}
},
"condition": {
"tokens-relative-position": {"type": "Right"}
}
}
}
}
},
{
"description": "If there is a coordinated verb among the dependents of a governor, all the other dependents must be on the left of that coordinated verb",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"syn-partial": {"value": "COORD2ND"}},
{"morphology": {"pos-partial": "VERB"}}
]
},
"governor": {
"any-direct-descendant": {
"not": {
"and": [
{"syn-partial": {"value": "COORD2ND"}},
{"morphology": {"pos-partial": "VERB"}}
]
}
}
}
},
"condition": {
"governor": {
"match-direct-descendants": {
"target": {
"not": {
"and": [
{"syn-partial": {"value": "COORD2ND"}},
{"morphology": {"pos-partial": "VERB"}}
]
}
},
"reference": {
"and": [
{"syn-partial": {"value": "COORD2ND"}},
{"morphology": {"pos-partial": "VERB"}}
]
},
"condition": {
"tokens-relative-position": {"type": "Left"}
}
}
}
}
},
{
"description": "An infinite verb must be coordinated to an infinite verb only",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"context": true, "pos-partial": "VERB", "mood": "INF"}},
{"syn-partial": {"value": "COORD2ND"}}
]
}
},
"condition": {
"governor": {"morphology": {"context": true, "pos-partial": "VERB", "mood": "INF"}}
}
},
{
"description": "A reduced relative clause is a verb with mood participle",
"penalty": 0.0,
"premise": {"syn-partial": {"value": "RELCL-REDUC"}},
"condition": {"morphology": {"context": true, "pos-partial": "VERB", "mood": "PART"}}
},
{
"description": "The person property of a subject must agree with its verb",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "SUBJ"}},
"governor": {"morphology": {"pos-partial": "VERB"}}
},
"condition": {
"dependent": {"agreement-with-governor": {"context": true, "properties": ["person"]}}
}
},
{
"description": "An object cannot have a reduced relative clause in the past tense as governor",
"penalty": 0.0,
"premise": {
"dependent": {"syn-partial": {"value": "OBJ"}}
},
"condition": {
"governor": {
"not": {
"and": [
{"syn-partial": {"value": "RELCL-REDUC"}},
{"morphology": {"context": true, "tense": "PAST"}}
]
}
}
}
},
{
"description": "If a dependent is a noun with a direct connective and it is coordinated to an infinite verb then the governor must have a connective direct dependent",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "NOUN"}},
{"syn-partial": {"value": "COORD2ND"}},
{"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
]
},
"governor": {
"morphology": {"context": true, "pos-partial": "VERB", "mood": "INF"}
}
},
"condition": {
"governor": {"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
}
},
{
"description": "If the governor is a verb and the dependent is a restrictive modifier of type infinite verb, then the dependent must have a connective direct dependent",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"context": true, "pos-partial": "VERB", "mood": "INF"}},
{"syn-partial": {"value": "RMOD"}}
]
},
"governor": {"morphology": {"pos-partial": "VERB"}}
},
"condition": {
"dependent": {"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
}
},
{
"description": "A restrictive modifier of type infinite verb that depends on a noun, a pronoun, an adjective or a number must have a connective direct dependent",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"syn-partial": {"value": "RMOD"}}
]
},
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}}
]
}
},
"condition": {
"dependent": {"any-direct-descendant": {"syn-partial": {"value": "CONN"}}}
}
},
{
"description": "If an article depends on a verb then the governor must be infinite",
"penalty": 0.0,
"premise": {
"dependent": {"morphology": {"pos-partial": "ART"}},
"governor": {"morphology": {"pos-partial": "VERB"}}
},
"condition": {
"governor": {"morphology": {"context": true, "mood": "INF"}}
}
},
{
"description": "If a preposition depends on a verb then the governor must be infinite",
"penalty": 0.0,
"premise": {
"dependent": {"morphology": {"pos-partial": "PREP"}},
"governor": {"morphology": {"pos-partial": "VERB"}}
},
"condition": {
"governor": {"morphology": {"context": true, "mood": "INF"}}
}
},
{
"description": "An infinite verb cannot be the left dependent of the top",
"penalty": 0.0,
"premise": {
"dependent": {"morphology": {"context": true, "pos-partial": "VERB", "mood": "INF"}},
"governor": {"syn-partial": {"value": "TOP"}}
},
"condition": {
"dependent": {"not": {"position-respect-governor": {"type": "Left"}}}
}
},
{
"description": "If a verb is a left dependent of a noun or a pronoun, then it must be a reduced relative clause",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"position-respect-governor": {"type": "Left"}}
]
},
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}}
]
}
},
"condition": {
"dependent": {"syn-partial": {"value": "RELCL-REDUC"}}
}
},
{
"description": "If an adjective is at the left of its governor, the governor can only be a verb, and adverb, a noun, a conjunction, a pronoun, an adjective, a number or a phrasal word",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "ADJ"}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADV"}},
{"morphology": {"pos-partial": "PREP"}},
{"morphology": {"pos-partial": "ADJ"}}
]
}
}
},
{
"description": "If an adjective is at the right of its governor, the governor can only be a verb, and adverb, a noun, a conjunction, a pronoun, an adjective, a number or a phrasal word",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "ADJ"}},
{"position-respect-governor": {"type": "Right"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}}
]
}
}
},
{
"description": "If an adverb is at the right of its governor, the governor can only be a verb, and adverb, a noun, a conjunction, a pronoun, an adjective, a number or a phrasal word",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "ADV"}},
{"position-respect-governor": {"type": "Right"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "ADV"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "CONJ"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "PHRASE"}},
]
}
}
},
{
"description": "If an adverb is at the left of its governor, the governor can only be a preposition, a predeterminer, an article, a conjunction, an adverb, a verb, and adverb, a noun, a conjunction, a pronoun, an adjective, a number or a phrasal word",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "ADV"}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "PREP"}},
{"morphology": {"pos-partial": "PREDET"}},
{"morphology": {"pos-partial": "ART"}},
{"morphology": {"pos-partial": "CONJ"}},
{"morphology": {"pos-partial": "ADV"}},
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "CONJ"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "PHRASE"}}
]
}
}
},
{
"description": "If a pronoun is at the left of its governor, the governor can only be a verb, a noun, a pronoun, an adjective or a number",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "PRON"}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}}
]
}
}
},
{
"description": "If a pronoun is at the left of its governor, the governor can only be a verb, and adverb, a noun, a conjunction, a pronoun, an adjective, a number or a phrasal word",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "PRON"}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}}
]
}
}
},
{
"description": "If a pronoun is at the right of its governor, the governor can only be a verb, a noun, a pronoun, an adjective, an adverb, a predeter or a number",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "PRON"}},
{"position-respect-governor": {"type": "Right"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "ADV"}},
{"morphology": {"pos-partial": "PREDET"}},
{"morphology": {"pos-partial": "NUM"}}
]
}
}
},
{
"description": "The governor of a partitive indeterminer article can only be a noun or a pronoun",
"penalty": 0.0,
"premise": {
"dependent": {"morphology": {"pos-partial": "ART-INDEF-PART"}}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}}
]
}
}
},
{
"description": "If a verb is at the left of its governor, the governor can only be a verb or a noun",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "VERB"}}
]
}
}
},
{
"description": "If a verb is at the right of its governor, the governor can only be a verb, a noun, a pronoun, an adjective, a number or a phrasal word",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "VERB"}},
{"position-respect-governor": {"type": "Right"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "PHRASE"}}
]
}
}
},
{
"description": "If a number is at the left of its governor, the governor can only be a noun, an adjective or a verb",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "NUM"}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "VERB"}}
]
}
}
},
{
"description": "If a number is at the right of its governor, the governor can only be a verb, a noun, a pronoun, an adjective, a number or a phrasal word",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "NUM"}},
{"position-respect-governor": {"type": "Right"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "PHRASE"}}
]
}
}
},
{
"description": "If a noun is at the right of its governor, the governor can only be a noun, a verb, an adjective, a pronoun, a number, an adverb, a date, an hour or a phrasal word",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "NOUN"}},
{"position-respect-governor": {"type": "Right"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}},
{"morphology": {"pos-partial": "NUM"}},
{"morphology": {"pos-partial": "ADV"}},
{"morphology": {"pos-partial": "HOUR"}},
{"morphology": {"pos-partial": "DATE"}},
{"morphology": {"pos-partial": "PHRASE"}}
]
}
}
},
{
"description": "If a noun is at the left of its governor, the governor can only be a verb, a noun, an adjective or a pronoun",
"penalty": 0.0,
"premise": {
"dependent": {
"and": [
{"morphology": {"pos-partial": "NOUN"}},
{"position-respect-governor": {"type": "Left"}}
]
}
},
"condition": {
"governor": {
"or": [
{"morphology": {"pos-partial": "VERB"}},
{"morphology": {"pos-partial": "NOUN"}},
{"morphology": {"pos-partial": "PRON"}},
{"morphology": {"pos-partial": "ADJ"}}
]
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment