Reference implementation of Cosmopolitan Identifiers (CIDs) as a Swift package.
The package contains the CosmoID type which represents CIDs:
import CosmopolitanIdentifiers
let cid = CosmoID(external: "Fréchet Колмого́ров θεώρημα")!
print("CosmoID = \(cid)")
print("Normal form = \(cid.normalizedName)")
let nf = CosmoID("frechet-kolmogorov-theorima")!
assert(cid == nf)