Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

Notifications You must be signed in to change notification settings

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

Watchers

Forks

Sponsor this project

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /