namecase-rs
A Rust library for converting names to proper case with intelligent handling of special naming conventions.
Library Usage
Basic Usage
use ;
Options
use ;
CLI Usage
Process names from the command line:
# Basic usage
# Output: John Doe
# Preserve mixed case input
# Output: John Smith
# Allow lowercase start (preserves prefixes like "von", "van", "de")
# Output: von Neumann
CLI Options
--enable-preserve-mixed: Skip processing if input is already mixed case--enable-lowercase-start: Allow lowercase at start of name--disable-hebrew: Disable Hebrew "ben"/"bat" prefix handling--disable-spanish: Disable Spanish "el"/"la"/"y" capitalization--disable-roman-numerals: Disable Roman numeral uppercasing--disable-postnominal: Disable post-nominal initials preservation
Data Source
The naming rules are derived from the Lingua::EN::NameCase Perl module, which is licensed under the Artistic License 2.0. No affiliation or endorsement is implied.
License
This project is dual-licensed under either of:
- MIT license (see
LICENSE-MIT) - Apache License, Version 2.0 (see
LICENSE-APACHE)
You may choose either license.
Provenance note: Portions of this repository were generated with the help of AI tooling under the direction of the repository maintainer. Review and verify any third-party data or content included for suitability in your use case.