Annotates each character in the buffer with a category chosen by the user. The user can delete all characters belonging to a certain category.