Skip to main content

Module strings

Module strings 

Source
Expand description

String utilities for error messages and suggestions.

This module provides functions for generating helpful suggestions in error messages, such as “did you mean X?” when a user typos a label.

Functions§

find_similar
Finds the most similar string from a list of candidates.
format_suggestion
Formats a suggestion hint for error messages.
format_suggestions
Formats a list of suggestions as a hint.