Did you know ... Search Documentation:
Pack pinyin -- prolog/casing.pl
PublicShow source
 casing(?Codes, ?Lower, ?CasePattern)
True if a word, given as a code-list Codes, obeys CasePattern, which is one of allcaps, capitalized, and lower, and Lower is the downcased version of Codes. Useful for "factoring out" the casedness information of a string. Extensions to arbitrary case patterns are conceivable but not currently implemented.