add text to codebook