Perhaps use polyglot's language detection
Looks like the polyglot language detection can discern Traditional and Simplified chinese, which have the same language code.
This can help in the case of autonomous mode where we attempt language detection with both HanS
and HanT
, but don't know which script to use when we just detect zh
as language.