Skip to content

Commit

Permalink
feat!: Upgrade Finland Cities Dict (#2387)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ki-er authored Aug 1, 2023
1 parent 76f4bfb commit 529af4d
Show file tree
Hide file tree
Showing 7 changed files with 358 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dictionaries/city-names-finland/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dictionaryDefinitions": [
{
"name": "city-names-finland",
"path": "./city-names-finland.txt.gz",
"path": "./dict/city-names-finland.txt",
"description": "List of cities in Finland."
}
],
Expand Down
6 changes: 6 additions & 0 deletions dictionaries/city-names-finland/cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
$schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
import:
- ./cspell-ext.json
dictionaries:
- city-names-finland
3 changes: 3 additions & 0 deletions dictionaries/city-names-finland/dict/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dict Directory

NOTE: This directory contains generated content. Please edit [src](../src/README.md) files.
342 changes: 342 additions & 0 deletions dictionaries/city-names-finland/dict/city-names-finland.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,342 @@

# cspell-tools: keep-case no-split

akaa
alajärvi
alavieska
alavus
asikkala
askola
aura
brändö
central
eckerö
enonkoski
enontekiö
espoo
etelä
eura
eurajoki
evijärvi
finland
finström
former
forssa
föglö
geta
haapajärvi
haapavesi
hailuoto
halsua
hamina
hammarland
hankasalmi
hanko
harjavalta
hartola
hattula
hausjärvi
heinola
heinävesi
helsinki
hirvensalmi
hollola
honkajoki
huittinen
humppila
hyrynsalmi
hyvinkää
häme
hämeenkyrö
hämeenlinna
ii
iisalmi
iitti
ikaalinen
ilmajoki
ilomantsi
imatra
inari
inkoo
isojoki
isokyrö
janakkala
joensuu
jokioinen
jomala
joroinen
joutsa
juankoski
juuka
juupajoki
juva
jyväskylä
jämijärvi
jämsä
järvenpää
kaarina
kaavi
kainuu
kajaani
kalajoki
kangasala
kangasniemi
kankaanpää
kannonkoski
kannus
kanta
karelia
karijoki
karkkila
karstula
karvia
kaskinen
kauhajoki
kauhava
kauniainen
kaustinen
keitele
kemi
kemijärvi
keminmaa
kemiönsaari
kempele
kerava
keuruu
kihniö
kinnula
kirkkonummi
kitee
kittilä
kiuruvesi
kivijärvi
kokemäki
kokkola
kolari
konnevesi
kontiolahti
korsnäs
koski
kotka
kouvola
kristiinankaupunki
kruunupyy
kuhmo
kuhmoinen
kumlinge
kunta
kuopio
kuortane
kurikka
kustavi
kuusamo
kymenlaakso
kyyjärvi
kärkölä
kärsämäki
kökar
lahti
laihia
laitila
lapinjärvi
lapinlahti
lapland
lappajärvi
lappeenranta
lapua
laukaa
lemi
lemland
lempäälä
leppävirta
lestijärvi
lieksa
lieto
liminka
liperi
lohja
loimaa
loppi
loviisa
luhanka
lumijoki
lumparland
luoto
luumäki
luvia
maalahti
maarianhamina
mariehamn
marttila
masku
merijärvi
merikarvia
miehikkälä
mikkeli
muhos
multia
muonio
mustasaari
muurame
mynämäki
myrskylä
mäntsälä
mänttä
mäntyharju
naantali
nakkila
nivala
nokia
north
nousiainen
nurmes
nurmijärvi
närpiö
orimattila
oripää
orivesi
ostrobothnia
oulainen
oulu
outokumpu
padasjoki
paimio
paltamo
parainen
parikkala
parkano
pedersören
pelkosenniemi
pello
perho
pertunmaa
petäjävesi
pieksämäki
pielavesi
pietarsaari
pihtipudas
pirkanmaa
pirkkala
pohjois
polvijärvi
pomarkku
pori
pornainen
porvoo
posio
pudasjärvi
pukkila
punkalaidun
puolanka
puumala
pyhtää
pyhäjoki
pyhäjärvi
pyhäntä
pyhäranta
päijät
pälkäne
pöytyä
raahe
raasepori
raisio
rantasalmi
ranua
rauma
rautalampi
rautavaara
rautjärvi
reisjärvi
riihimäki
ristijärvi
rovaniemi
ruokolahti
ruovesi
rusko
rääkkylä
saarijärvi
salla
salo
saltvik
sastamala
satakunta
sauvo
savitaipale
savo
savonlinna
savukoski
seinäjoki
sievi
siikainen
siikajoki
siikalatva
siilinjärvi
simo
sipoo
siuntio
sodankylä
soini
somero
sonkajärvi
sotkamo
sottunga
south
sulkava
sund
suomi
suomussalmi
suonenjoki
sysmä
säkylä
taipalsaari
taivalkoski
taivassalo
tammela
tampere
tervo
tervola
teuva
tl
tohmajärvi
toholampi
toivakka
tornio
turku
tuusniemi
tuusula
tyrnävä
ulvila
urjala
utajärvi
utsjoki
uurainen
uusikaarlepyy
uusikaupunki
uusimaa
vaala
vaasa
valkeakoski
valtimo
vantaa
varkaus
varsinais
vehmaa
vesanto
vesilahti
veteli
vieremä
vihti
viitasaari
vilppula
vimpeli
virolahti
virrat
vårdö
vöyri
ylitornio
ylivieska
ylöjärvi
ypäjä
ähtäri
äänekoski
åland
6 changes: 3 additions & 3 deletions dictionaries/city-names-finland/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"./cspell-ext.json": "./cspell-ext.json"
},
"scripts": {
"build": "cspell-tools compile \"city-names-finland.txt\" -o .",
"test": "shx head -n 100 \"city-names-finland.txt\" | cspell -v -c ./cspell-ext.json --local=* --languageId=* stdin",
"build": "cspell-tools-cli compile --keep-raw-case --use-legacy-splitter src/city-names-finland.txt --no-compress -o ./dict",
"test": "shx head -n 100 src/city-names-finland.txt | cspell -v -c ./cspell-ext.json --local=* --languageId=* stdin",
"prepublishOnly": "echo pre-publish",
"prepare": "pnpm run build"
},
Expand All @@ -34,7 +34,7 @@
},
"homepage": "https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/city-names-finland#readme",
"files": [
"city-names-finland.txt.gz",
"dict/city-names-finland.txt",
"cspell-ext.json"
]
}
3 changes: 3 additions & 0 deletions dictionaries/city-names-finland/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Source Directory

All source files used to generate the dictionary should be stored in this directory.

0 comments on commit 529af4d

Please sign in to comment.