v151 · built-in-ai · i18n

LanguageDetector: Traditional vs. Simplified Chinese

The built-in LanguageDetector API now returns zh-Hant (Traditional) and zh-Hans (Simplified) instead of just zh. Previously indistinguishable Chinese variants are now detected separately.

concepts

  1. Text Detector

    Paste Chinese text (Traditional or Simplified) and run the LanguageDetector to see which variant is detected, with confidence scores.

  2. Batch Comparator

    Run detection across a set of pre-loaded samples — Traditional, Simplified, and mixed — to see how the new codes differentiate them.

references

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗