Inline word probability calculation.