anonymize

fun anonymize(value: String, owners: Map<String, String>, home: String? = null): String(source)

Other users' home paths become .../user; names equal to an owner become its placeholder; with home, that exact directory becomes ~ first.