code: public LexiconEntryInfo replaceCategory(CcgCategory newCategory) {
      return new LexiconEntryInfo(newCategory, lexiconTrigger, lexiconIndex, spanStart, spanEnd,
          triggerSpanStart, triggerSpanEnd);
    }
docs: Returns a copy of {@code this} with the CCG category replaced
  by {@code newCategory}.
  
  @param newCategory
  @return