phonotactic_probability_vitevitch

corpustools.phonoprob.phonotactic_probability.phonotactic_probability_vitevitch(corpus_context, query, probability_type='unigram', stop_check=None, call_back=None)[source]

Calculate the phonotactic_probability of a particular word using the Vitevitch & Luce algorithm

Parameters:

corpus_context : CorpusContext

Context manager for a corpus

query : Word

The word whose neighborhood density to calculate.

probability_type : str

Either ‘unigram’ or ‘bigram’ probability

stop_check : callable or None

Optional function to check whether to gracefully terminate early

call_back : callable or None

Optional function to supply progress information during the function

Returns:

float

Phonotactic probability of the word