* @return new entries
*/
public GrammarEntries createCoselectionEntries(Grammar grammar, Semantics input, GrammarEntries otherEntries)
{
GrammarEntries ret = new GrammarEntries();
Lemma lemma = template.getLemma(context);
Equations equations = template.getEquations();
FeatureConstant anchor = new FeatureConstant(context.getValue(SelectionPattern.ANCHOR_VAR).toString());
for(GrammarEntry entry : grammar.getEntriesContainingTrace(template.getTrace()))
{
GrammarEntry newEntry = FamilyLexicalSelection.createEntry(entry, input, context, lemma, equations, false, true);