List of functions in the ude.parsers.dialects namespace.

Entity NameDescription
register_dialectRegisters a custom dialect under key. docstring_formatspec string this dialect will be selectable under. cls: TheDocstringDialect` subclass to register.
detect_dialectVotes among scored dialects; falls back to NumpySwigDialect for Python or PlainDialect otherwise. docstring samples to score each scored dialect against. DocstringDialect`, or the language-appropriate fallback if no dialect scored above 0.0.
get_docstring_dialect

Generated with Flude

Copyright © 2026

Directory & Entity Index

Entity NameSummary / Description
detect_dialect function

Votes among scored dialects; falls back to NumpySwigDialect for Python or PlainDialect otherwise. docstring samples to score each scored dialect against. DocstringDialect`, or the language-appropriate fallback if no dialect scored above 0.0.

Returns:

An instance of the highest-confidence `

Methods

detect_dialect

detect_dialect(language: str, samples: Raw) -> DocstringDialect

Votes among scored dialects; falls back to NumpySwigDialect for Python or PlainDialect otherwise. docstring samples to score each scored dialect against. DocstringDialect`, or the language-appropriate fallback if no dialect scored above 0.0.

get_docstring_dialect function

Returns a DocstringDialect instance for the given spec and language. docstring samples used only when spec is “auto”. DocstringDialect` instance for the resolved dialect.

Raises: UdeException: If spec is not “auto” and not a registered dialect key.

Returns:

A `

Methods

get_docstring_dialect

get_docstring_dialect(spec: str, language: str, : *, samples: Raw) -> DocstringDialect

Returns a DocstringDialect instance for the given spec and language. docstring samples used only when spec is “auto”. DocstringDialect` instance for the resolved dialect.

register_dialect function

Registers a custom dialect under key. docstring_formatspec string this dialect will be selectable under. cls: TheDocstringDialect` subclass to register.

Methods

register_dialect

register_dialect(key: str, cls: Type)

Registers a custom dialect under key. docstring_formatspec string this dialect will be selectable under. cls: TheDocstringDialect` subclass to register.

ParameterTypeDescription
keystrThe `
clsType

Generated with Flude

Copyright © 2026