Skip to main content

Module sisu_name

Module sisu_name 

Source
Expand description

What linking a student number does to the account’s name: the name follows Sisu, which verifies identity strongly, while the account’s own name is whatever the student once typed.

Structs§

Match 🔒
NameReplacement
The names the account may take on linking; the student picks the first name.

Enums§

Resemblance 🔒

Functions§

align
The name linking gives the account, or None when it keeps its own: it already uses Sisu’s name, or Sisu holds none.
best_match 🔒
The closest of names not yet used that word resembles.
folded 🔒
Lowercased with diacritics removed, so “Mäkinen” and “makinen” compare equal.
levenshtein 🔒
normalized 🔒
NFC, trimmed, with runs of whitespace collapsed to one space.
resemblance 🔒
words 🔒