Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New hand-crafted Swedish resources #81

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ We want to thank the following researchers for their efforts to develop HeidelTi
3. Russian resources: Elena Klyachko
4. [Croatian resources](http://nl.ijs.si/isjt14/proceedings/isjt2014_17.pdf): Luka Skukan, University of Zagreb
5. Portuguese resources: Zunsik Lim
6. Swedish resources: Maja Geulig

Please feel free to use our automatically created resources as starting point, if you plan to manually address a language.

Expand Down
4 changes: 4 additions & 0 deletions resources/manual-swedish/.directory
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Dolphin]
Timestamp=2019,10,21,9,21,7
Version=4
ViewMode=2
6 changes: 6 additions & 0 deletions resources/manual-swedish/normalization/.directory
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Dolphin]
SortOrder=1
SortRole=modificationtime
Timestamp=2019,10,21,9,49,6
Version=4
ViewMode=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// author: Jannik Strötgen, Maja Geulig
// date: 2019-10-01

"[Oo]ch","and"
"[Ee]ller","or"
"[Tt]ill","to"
"[Ii]","to"
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// author: Jannik Strötgen, Maja Geulig
// date: 2019-10-01

"[Ff]örrgår","UNDEF-this-day-MINUS-2"
"[Ii] förrgår","UNDEF-this-day-MINUS-2"
"[Ii]förrgår","UNDEF-this-day-MINUS-2"
"[Gg]årdag","UNDEF-last-day"
"[Ii] går","UNDEF-last-day"
"[Ii]går","UNDEF-last-day"
"[Dd]agen innan","UNDEF-last-day"
"[Dd]ag innan","UNDEF-last-day"
"[Ii]dag","UNDEF-this-day"
"[Ii] dag","UNDEF-this-day"
"[Ii]morgon","UNDEF-next-day"
"[Ii] morgon","UNDEF-next-day"
"[Mm]orgondag","UNDEF-next-day"
"[Nn]ästa dag","UNDEF-next-day"
"[Dd]agen därpå","UNDEF-next-day"
"[Öö]vermorgon","UNDEF-this-day-PLUS-2"
"[Ii] övermorgon","UNDEF-this-day-PLUS-2"
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// author: Maja Geulig
// date: 2019-10-01

"[Mm]åndags?","1"
"[Tt]isdags?","2"
"[Oo]nsdags?","3"
"[Tt]orsdags?","4"
"[Ff]redags?","5"
"[Ll]ördags?","6"
"[Ss]öndags?","7"
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// author: Jannik Strötgen
// date: 2015-03-24
// This file contains normalization information for date words.

0","00"
"00","00"
"1","01"
"01","01"
"2","02"
"02","02"
"3","03"
"03","03"
"4","04"
"04","04"
"5","05"
"05","05"
"6","06"
"06","06"
"7","07"
"07","07"
"8","08"
"08","08"
"9","09"
"09","09"
"10","10"
"11","11"
"12","12"
"13","13"
"14","14"
"15","15"
"16","16"
"17","17"
"18","18"
"19","19"
"20","20"
"21","21"
"22","22"
"23","23"
"24","24"
"25","25"
"26","26"
"27","27"
"28","28"
"29","29"
"30","30"
"31","31"
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// author: Jannik Strötgen, Maja Geulig
// date: 2019-10-01

"[Ee]tt","01"
"[Ee]n","01"
"[Tt]vå","02"
"[Tt]re","03"
"[Ff]yra","04"
"[Ff]em","05"
"[Ss]ex","06"
"[Ss]ju","07"
"[Åå]tta","08"
"[Nn]io","09"
"[Tt]io","10"
"[Ee]lva","11"
"[Tt]olv","12"
"[Tt]retton","13"
"[Ff]jorton","14"
"[Ff]emton","15"
"[Ss]exton","16"
"[Ss]jutton","17"
"[Aa]rton","18"
"[Aa]derton","18"
"[Nn]itton","19"
"[Tt]jugo","20"
"[Tt]jugoett","21"
"[Tt]jugoen","21"
"[Tt]jugotvå","22"
"[Tt]jugotre","23"
"[Tt]jugofyra","24"
"[Tt]jugofem","25"
"[Tt]jugosex","26"
"[Tt]jugosju","27"
"[Tt]jugoåtta","28"
"[Tt]jugonio","29"
"[Tt]rettio","30"
"[Tt]rettioett","31"
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// author: Jannik Strötgen, Maja Geulig
// date: 2019-10-01

"[Ee]tt","1"
"[Ee]n","1"
"[Tt]vå","2"
"[Tt]re","3"
"[Ff]yra","4"
"[Ff]em","5"
"[Ss]ex","6"
"[Ss]ju","7"
"[Åå]tta","8"
"[Nn]io","9"
"[Tt]io","10"
"[Ee]lva","11"
"[Tt]olv","12"
"[Tt]retton","13"
"[Ff]jorton","14"
"[Ff]emton","15"
"[Ss]exton","16"
"[Ss]jutton","17"
"[Aa]rton","18"
"[Aa]derton","18"
"[Nn]itton","19"
"[Tt]jugo","20"
"[Tt]jugoett","21"
"[Tt]jugoen","21"
"[Tt]jugotvå","22"
"[Tt]jugotre","23"
"[Tt]jugofyra","24"
"[Tt]jugofem","25"
"[Tt]jugosex","26"
"[Tt]jugosju","27"
"[Tt]jugoåtta","28"
"[Tt]jugonio","29"
"[Tt]rettio","30"
"[Tt]rettioett","31"
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// author: Maja Geulig
// date: 2019-10-01

"[Ff]örste","01"
"[Ff]örsta","01"
"[Ff]örst","01"
"[Aa]ndra","02"
"[Ss]ekund","02"
"[Tt]redje","03"
"[Ff]järde","04"
"[Ff]emte","05"
"[Ss]jätte","06"
"[Ss]junde","07"
"[Åå]ttonde","08"
"[Nn]ionde","09"
"[Tt]ionde","10"
"[Ee]lfte","11"
"[Tt]olfte","12"
"[Tt]rettonde","13"
"[Ff]jortonde","14"
"[Ff]emtonde","15"
"[Ss]extonde","16"
"[Ss]juttonde","17"
"[Aa]rtonde","18"
"[Nn]ittonde","19"
"[Tt]jugonde","20"
"[Tt]jugoandra","21"
"[Tt]jugosekunde","22"
"[Tt]jugotredje","23"
"[Tt]jugofjärde","24"
"[Tt]jugofemte","25"
"[Tt]jugosjätte","26"
"[Tt]jugosjunde","27"
"[Tt]jugoåttonde","28"
"[Tt]jugonittonde","29"
"[Tt]rettionde","30"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// author: Jannik Strötgen, Maja Geulig
// date: 2019-10-01

"[Dd]ygn","day"
"[Dd]ag","day"
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// author: Jannik Strötgen, Maja Geulig
// date: 2019-10-01

"[Vv]arje","each"
"[Vv]ar","each"
"[Pp]er styck","each"
"à","each"
"[Vv]arje","every"
"[Vv]ar","every"
"[Aa]lla","every"
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// author: Maja Geulig
// date: 2019-10-01

"1","01"
"2","02"
"3","03"
"4","04"
"5","05"
"6","06"
"7","07"
"8","08"
"9","09"
"10","10"
"11","11"
"12","12"
"13","13"
"14","14"
"15","15"
"16","16"
"17","17"
"18","18"
"19","19"
"20","20"
"21","21"
"22","22"
"23","23"
"24","24"
"25","25"
"26","26"
"27","27"
"28","28"
"29","29"
"30","30"

"40","40"
"50","50"
"60","60"
"70","70"
"80","80"
"90","90"
"100","100"


"[Ee]tt","1"
"[Ee]n","1"
"[Tt]vå","2"
"[Tt]re","3"
"[Ff]yra","4"
"[Ff]em","5"
"[Ss]ex","6"
"[Ss]ju","7"
"[Åå]tta","8"
"[Nn]io","9"
"[Tt]io","10"
"[Ee]lva","11"
"[Tt]olv","12"
"[Tt]retton","13"
"[Ff]jorton","14"
"[Ff]emton","15"
"[Ss]exton","16"
"[Ss]jutton","17"
"[Aa]rton","18"
"[Aa]derton","18"
"[Nn]itton","19"
"[Tt]jugo","20"
"[Tt]jugoett","21"
"[Tt]jugoen","21"
"[Tt]jugotvå","22"
"[Tt]jugotre","23"
"[Tt]jugofyra","24"
"[Tt]jugofem","25"
"[Tt]jugosex","26"
"[Tt]jugosju","27"
"[Tt]jugoåtta","28"
"[Tt]jugonio","29"
"[Tt]rettio","30"

"[Ff]yrtio","40"
"[Ff]emtio","50"
"[Ss]extio","60"
"[Ss]juttio","70"
"[Åå]ttio","80"
"[Nn]ittio","90"
"[Ee]n hundra","100"

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// author: Maja Geulig
// date: 2019-10-01
// This file contains regular expression patterns for holidays on a fix date.

"Nyår","01-01"
"Nyårsdag","01-01"
"Nyårsdagen","01-01"
"Nyårsafton","12-31"

"Trettondedag Jul","01-06"
"Trettondedag jul","01-06"
"Trettondagsafton","01-05"

"Luciadagen","12-13"
"Luciadag","12-13"
"Sveriges Nationaldag","06-06"
"Sveriges nationaldag","06-06"
"Valborgsmässoafton","04-30"

"Jul(en)?","12-24"
"Julafton","12-24"
"Juldagen","12-25"
"jul(en)?","12-24"
"julafton","12-24"
"juldagen","12-25"
"Annandag jul","12-26"
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// author: Maja Geulig, using on German resources created by H. Pfeiffer
// date: 2019-10-01
// This file contains "moveable holidays". They can be calculated realtive to the Eastersunday like many christian holidays or relative to a date.
// The placeholders are replaced with the value from the ruleset.
// available functions: EasterSunday(<YEAR>, <numberOfDaysToAdd>), WeekdayRelativeTo(<DateToBeRelativeTo>, <Weekday>, <numberOfWeekdays>, <countItself>)
// available placeholder: DATE, YEAR, MONTH, DAY
// sunday=1, monday=2, tuesday=3, wednesday=4, thursday=5, friday=6, saturday=7
// FORMAT: "holiday","funcDateCalc(<function>(<arguments>))"
// the reference of the values is given in the repattern file

"[Kk]risti himmelsfärdsdag","funcDateCalc(EasterSunday(YEAR, 39))"
"[Kk]risti himmelsfärdsdagen","funcDateCalc(EasterSunday(YEAR, 39))"
"[Pp]ingstdagen","funcDateCalc(EasterSunday(YEAR, 49))"
"[Pp]ingstafton","funcDateCalc(EasterSunday(YEAR, 48))"
"[Pp]ingst","funcDateCalc(EasterSunday(YEAR, 49))"
"[Pp]åskdag","funcDateCalc(EasterSunday(YEAR, 0))"
"[Pp]åskdagen","funcDateCalc(EasterSunday(YEAR, 0))"
"[Aa]nnandag [Pp]åsk","funcDateCalc(EasterSunday(YEAR, 1))"
"[Pp]åsk","funcDateCalc(EasterSunday(YEAR, 0))"
"[Pp]åskafton","funcDateCalc(EasterSunday(YEAR, -1))"
"[Ll]ångfredagen","funcDateCalc(EasterSunday(YEAR, -2))"
"[Ss]kärtorsdagen","funcDateCalc(EasterSunday(YEAR, -3))"
Loading