Adding type of feature to posterior probability calculation