Keep every legal compound surname reachable, and tighten the README wording

This commit is contained in:
Mikael Göransson
2026-08-27 23:49:53 +02:00
committed by lilleman-tw
parent cd25aea6f1
commit e73cb398ac
4 changed files with 21 additions and 14 deletions
+3 -4
View File
@@ -127,10 +127,9 @@ func TestShippedMiscReferenceData(t *testing.T) {
}
}
// TestSwedishNamesHaveNoTripleLetter pins an orthographic rule the shape regexes
// miss: Swedish never triples a consonant, so no prefix/suffix pair in the name
// data may compose one (Jöns+sson, Wall+lund, Norr+roth).
func TestSwedishNamesHaveNoTripleLetter(t *testing.T) {
// TestSwedishPersonNamesHaveNoTripleLetter pins an orthographic rule the shape
// regexes miss: Swedish never triples a consonant.
func TestSwedishPersonNamesHaveNoTripleLetter(t *testing.T) {
f := newFakes(t, "data/sv_SE", WithSeed(11))
for _, path := range []string{"person", "person.last"} {
for i := 0; i < 20000; i++ {