Package-level declarations
Types
Link copied to clipboard
Composite rule that requires ALL child rules to pass.
Link copied to clipboard
Composite rule that requires AT LEAST ONE child rule to pass.
Link copied to clipboard
Rejects generic nouns for specific entity types.
Link copied to clipboard
data class LengthConstraint(val minLength: Int? = null, val maxLength: Int? = null) : MentionValidationRule
Enforces minimum and/or maximum length constraints.
Link copied to clipboard
Type-safe validation rule for entity mentions.
Link copied to clipboard
data class MinWordCount(val minWords: Int, val wordSeparator: <Error class: unknown class> = Regex("\\s+")) : MentionValidationRule
Requires minimum number of words (useful for person names, etc.).
Link copied to clipboard
Rejects empty or whitespace-only mentions.
Link copied to clipboard
data class NoVagueReferences(val excludedStarters: List<String> = listOf("this", "that", "these", "those", "the", "an", "a")) : MentionValidationRule
Rejects mentions starting with vague demonstrative pronouns or articles.
Link copied to clipboard
data class PatternConstraint(val pattern: <Error class: unknown class>, val patternDescription: String = pattern.pattern) : MentionValidationRule
Validates against a regex pattern.
Link copied to clipboard
Validation result for entity mentions.