Text: Add "le" and "la" to smallwords.go #2672
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
323d495840
commit
94de0598d2
2 changed files with 13 additions and 2 deletions
|
@ -20,7 +20,11 @@ var SmallWords = map[string]bool{
|
|||
"from": true,
|
||||
"with": true,
|
||||
"de": true, // French ↓
|
||||
"des": true,
|
||||
"en": true,
|
||||
"le": true,
|
||||
"la": true,
|
||||
"van": true, // Dutch ↓
|
||||
"zu": true, // German ↓
|
||||
"ab": true,
|
||||
"um": true,
|
||||
|
@ -34,8 +38,6 @@ var SmallWords = map[string]bool{
|
|||
"ist": true,
|
||||
"und": true,
|
||||
"uns": true,
|
||||
"des": true,
|
||||
"van": true,
|
||||
"von": true,
|
||||
"für": true,
|
||||
"ein": true,
|
||||
|
|
|
@ -10,6 +10,15 @@ func TestTitle(t *testing.T) {
|
|||
t.Run("Cour d'Honneur", func(t *testing.T) {
|
||||
assert.Equal(t, "Cour d'Honneur", Title("Cour d'Honneur"))
|
||||
})
|
||||
t.Run("Ducs de La Force", func(t *testing.T) {
|
||||
assert.Equal(t, "Ducs de la Force", Title("Ducs de La Force"))
|
||||
})
|
||||
t.Run("ducs de la force", func(t *testing.T) {
|
||||
assert.Equal(t, "Ducs de la Force", Title("ducs de la force"))
|
||||
})
|
||||
t.Run("Broglie", func(t *testing.T) {
|
||||
assert.Equal(t, "Broglie, des Cars", Title("broglie, des cars"))
|
||||
})
|
||||
t.Run("Île-de-France", func(t *testing.T) {
|
||||
assert.Equal(t, "Île-de-France", Title("Île-de-France"))
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue