If there are several right-hand or left-hand derivatives for a word in relation to a formal grammar, or if there are two different right-hand or two different left-hand derivative trees for a word in the grammar that are not isomorphic to one another, then this grammar is called ambiguous .
example
Given the language, the grammar with and the following rule set :
The grammar is ambiguous because two different left derivatives can be used to generate the word .