c# or c++?
if you worked in c#,firstly you should find your rule ISpeechRecoGrammar BY Rules.FindRule()
secondly,you can use ISpeechGrammarRule.InitialState.AddWordTransition()
lastly ,you should use commit() method