pub fn split_stem(kind: KeyKind, stem: &str) -> Result<(String, String), String>
Splits a document stem into key and slug according to the type’s key kind.