Parses a human-readable string to extract a set of validation rules.
It identifies keywords for common validation requirements (e.g., "required", "strong password")
and also leverages parseHumanTextToRegex to create pattern-based rules.
Parameters
humanText: string
The natural language string describing the validation requirements.
OptionaltestValue: string
An optional string to test the extracted rules against.
Parses a human-readable string to extract a set of validation rules. It identifies keywords for common validation requirements (e.g., "required", "strong password") and also leverages
parseHumanTextToRegex
to create pattern-based rules.