private static void AddWordToSegment(ISegment newSegment, Word word, ITsStrFactory strFactory)
{
//use the items under the word to determine what kind of thing to add to the segment
var cache = newSegment.Cache;
IAnalysis analysis = CreateWordAnalysisStack(cache, word, strFactory);
// Add to segment
if (analysis != null)
{
newSegment.AnalysesRS.Add(analysis);
}
}