Linch CPCA

Chinese Address Parser Library

LibraryDataOpen Source

High-performance parser for extracting province, city, and district from free-form Chinese addresses, with 2025 administrative data built in.

Why CPCA

Fast Parsing

Trie-based O(n) parsing with no heavy dependencies.

Complete Coverage

Built-in 2025 province/city/district data (3600+ records).

Zero Dependencies

Pure Rust core, easy to embed and ship.

Try CPCA

Install via Rust or Python, then explore the parsing output.

Try it

Choose the package manager that fits your stack.

Download

Docs and source for deeper integration.

Roadmap

  • Regular administrative dataset refreshes
  • More normalization helpers and edge-case rules
  • Feature parity across Rust and Python APIs

FAQ

Does it handle ambiguous addresses?

CPCA uses prefix-based parsing. You can add custom post-processing rules when needed.

Is the dataset bundled?

Yes, the 2025 administrative dataset ships inside the package.