nimkov/validators

Search:
Group by:
Source   Edit  

Procs

proc defaultValidator(): MarkovValidator {....raises: [], tags: [], forbids: [].}
Default validator for text. It always returns "true". Source   Edit  
proc symbolsCount(min = 0; max = int.high): MarkovValidator {....raises: [],
    tags: [], forbids: [].}
Validator, based on symbols count. Returns true, if count of symbols satisfy configured limits. Source   Edit  
proc wordsCount(min = 0; max = int.high): MarkovValidator {....raises: [],
    tags: [], forbids: [].}
Validator, based on words count. Returns true, if count of words satisfy configured limits. Source   Edit