ConstProvides regex pattern suggestions based on keywords found in the input text.
The user-provided text to analyze for suggestions.
An array of string suggestions, limited to the top 5 most relevant.
Partial or unclear text input that needs pattern suggestions. Can be incomplete words, typos, or vague descriptions that need clarification. Examples: "emai", "phon numb", "date tim", "secur password"
Array of helpful suggestion strings (limited to top 5 most relevant):
// Get suggestions for partial input
const suggestions = getSuggestions("emai");
// Returns: ["Did you mean 'email'? Try: email, email address, e-mail"]
// Help with unclear input
const phoneHelp = getSuggestions("phone");
// Returns suggestions for phone patterns, formats, and examples
// General pattern guidance
const general = getSuggestions("xyz123");
// Returns: ["Available patterns: email, phone, url, date...", "Use descriptive keywords..."]
Provides intelligent pattern suggestions based on partial or unclear text input. This helpful alias for
getPatternSuggestionsanalyzes user input and offers relevant pattern recommendations, keywords, and examples to guide pattern creation.