public void InventoryTokens(int bookNum, TextInventory inventory, IEnumerable<ITextToken> tokens) { foreach (ITextToken tok in tokens) { foreach (string key in ParseCharacterSequences(tok.Text)) { // Don't inventory spaces, lf, cr. if (key == " " || key == "\r" || key == "\n") continue; inventory.GetValue(key).AddReference(bookNum); } } } }