road_name_normalizer 0.1.0

Deterministic Vietnamese road-name prefix normalization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Normalize Vietnamese road-type prefixes without changing the proper name.
//!
//! The crate ships one versioned rule set and deliberately does not accept
//! runtime regular expressions or configuration.

mod normalizer;
mod rules;

pub use normalizer::normalize;

/// Selects how a recognized road-type prefix is transformed.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Mode {
    /// Replace the prefix with its approved abbreviation.
    Abbreviate,
    /// Apply the rule-specific removal policy.
    Remove,
}