sentence1: tree substitution grammar ( tsg ) is a compelling grammar formalism which allows nonterminal rewrites in the form of trees , thereby enabling the modelling of complex linguistic phenomena such as argument frames , lexical agreement and idiomatic phrases .
sentence2: tree substitution grammar ( tsg ) is a promising formalism for modeling language data .