NoVagueReferences

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.

Constructors

Link copied to clipboard
constructor(excludedStarters: List<String> = listOf("this", "that", "these", "those", "the", "an", "a"))

Properties

Link copied to clipboard
open override val description: String

Human-readable description of this rule.

Link copied to clipboard

List of lowercase prefixes to reject (e.g., "this", "that", "the")

Functions

Link copied to clipboard
open fun failureReason(mention: String): String?
Link copied to clipboard
open fun isValid(mention: String): Boolean
Link copied to clipboard
open override fun validate(mention: String): ValidationResult

Validate a mention span.