Skip to content

nager/Nager.TextValidation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nager.TextValidation

A lightweight .NET library to validate if text is meaningful by analyzing keyboard input patterns.
Supports QWERTY, QWERTZ, and AZERTY layouts.

Features

  • 🔎 Detects random or nonsensical input
  • ⌨️ Multiple keyboard layouts supported
  • ⚡ Lightweight and easy to integrate
  • 🛠️ Simple API for quick validation

Example

var textValidator = new TextValidator(new QwertzKeyboardLayout());
var keyboardDistance = textValidator.Check("Amsterdam"); //4.5072716803479853
var keyboardDistance = textValidator.Check("asdjkl"); //0.8571428571428571

Use Cases

  • Form validation (prevent junk input)
  • Detecting spam or bot entries
  • Ensuring high-quality user-generated content

About

Validate whether text is meaningful or random keyboard input. Lightweight .NET library with support for QWERTY, QWERTZ, and AZERTY layouts.

Topics

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Sponsor this project

 

Contributors

Languages