The computational modeling of inferential and referential competence