long written-out word comparison function