FREQUPDATE: Update usage numbers

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Update frequency numbers in lexicon and usage history.

Usage

1
FREQUPDATE(agentID, meaning, success)

Arguments

agentID

pointer to agent whose numbers are to be updated

meaning

Meaning (proposition or interpretation) on the basis of whose constituents the numbers in the usage history and lexicon have to be updated.

success

Logical for success of conversational turn (as number of successful uses are kept track of)

Details

Difference is made between local and third-person pronouns. +1 at the end for log operation and to prevent division by zero

Value

No actual output: updated usage history and lexicon

Author(s)

Sander Lestrade

See Also

TURN

Examples

1
2
3
4
5
6
7
8
FOUND()
situation=SITUATION(1)
proposition=PROPOSITION(1, situation)
population[[1]]$nouns[population[[1]]$nouns$ID%in%c(proposition$external$ID),]
population[[1]]$wordOrder
FREQUPDATE(1, proposition, success=1)
population[[1]]$nouns[population[[1]]$nouns$ID%in%c(proposition$external$ID),]
population[[1]]$wordOrder

MoLE documentation built on May 2, 2019, 3:02 p.m.