Extract comment type