(self, name: ReadabilityNameType, **kwargs)
return func(self.doc, **kwargs)
Compute a measure of text readability using a method with specified ``name``.

        Higher values => more difficult text for the following methods:

        - automated readability index
        - automatic arabic readability index
        - colman-liau index
        - flesch-kincaid grade level
        - gunning-fog index
        - lix
        - smog index
        - wiener-sachtextformel

        Higher values => less difficult text for the following methods:

        - flesch reading ease
        - gulpease index
        - mu legibility index
        - perspicuity index

        See Also:
            :mod:`textacy.text_stats.readability`
Compute a measure of text readability using a method with specified ``name``.
Compute a measure of text readability using a method with specified name .
def readability(self, name: ReadabilityNameType, **kwargs) -> float:
        """
        Compute a measure of text readability using a method with specified ``name``.

        Higher values => more difficult text for the following methods:

        - automated readability index
        - automatic arabic readability index
        - colman-liau index
        - flesch-kincaid grade level
        - gunning-fog index
        - lix
        - smog index
        - wiener-sachtextformel

        Higher values => less difficult text for the following methods:

        - flesch reading ease
        - gulpease index
        - mu legibility index
        - perspicuity index

        See Also:
            :mod:`textacy.text_stats.readability`
        """
        # in case users prefer "flesch-reading-ease" or "flesch reading ease"
        # to the underscored func-standard name "flesch_reading_ease"
        name = name.replace("-", "_").replace(" ", "_")
        try:
            func = getattr(readability, name)
        except AttributeError:
            raise ValueError(
                errors.value_invalid_msg(
                    "name",
                    name,
                    list(utils.get_function_names(readability, ignore_private=True)),
                )
            )
        return func(self.doc, **kwargs)
def readability ( self , name : ReadabilityNameType , * * kwargs ) -> float : # in case users prefer "flesch-reading-ease" or "flesch reading ease" # to the underscored func-standard name "flesch_reading_ease" name = name . replace ( "-" , "_" ) . replace ( " " , "_" ) try : func = getattr ( readability , name ) except AttributeError : raise ValueError ( errors . value_invalid_msg ( "name" , name , list ( utils . get_function_names ( readability , ignore_private = True ) ) , ) ) return func ( self . doc , * * kwargs )