extractor/fulltext/fulltext.py
def average_word_length(txt):
    """
    Gather statistics about the text, primarily the average word length

    Parameters
    ----------
    txt : str

    Returns
    -------
    word_length : float
        Average word length in the text
    """
    txt = re.subn(RE_REPEATS, '', txt)[0]
    nw = len(txt.split())
    nc = len(txt)
    avgw = nc / (nw + 1)
    return avgw

    Gather statistics about the text, primarily the average word length

    Parameters
    ----------
    txt : str

    Returns
    -------
    word_length : float
        Average word length in the text
    
Gather statistics about the text, primarily the average word length
Parameters

txt : str

Returns

word_length : float
Average word length in the text
Gather statistics about the text primarily the average word length Parameters txt : str Returns word_length : float Average word length in the text
def average_word_length(txt):
    txt = re.subn(RE_REPEATS, '', txt)[0]
    nw = len(txt.split())
    nc = len(txt)
    avgw = nc / (nw + 1)
    return avgw
def average_word_length ( txt ) : txt = re . subn ( RE_REPEATS , '' , txt ) [ 0 ] nw = len ( txt . split ( ) ) nc = len ( txt ) avgw = nc / ( nw + 1 ) return avgw
Gather statistics about the text, primarily the average word length
Parameters
Gather statistics about the text primarily the average word length Parameters
"""
    Gather statistics about the text, primarily the average word length

    Parameters
    ----------
    txt : str

    Returns
    -------
    word_length : float
        Average word length in the text
    """
txt