add bvg
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 4m31s

This commit is contained in:
philipp 2024-05-26 16:19:50 +02:00
parent 2b72ad6296
commit bd69a183c0
2 changed files with 36 additions and 1 deletions

2
Cargo.lock generated
View File

@ -547,7 +547,7 @@ dependencies = [
[[package]] [[package]]
name = "risp" name = "risp"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.hofer.link/philipp/risp.git#8314b5a61dfafb40da425f31eddd6ad6e25e6d15" source = "git+https://git.hofer.link/philipp/risp.git#c7711b111ad1f6e0ea41b7555efaa0ae48e4550b"
dependencies = [ dependencies = [
"clap", "clap",
"directories", "directories",

35
laws/bvg.toml Normal file
View File

@ -0,0 +1,35 @@
[law]
id = 10000138
name = "BVG"
par_sign = "Artikel"
[[law.classifiers]]
name = "Hauptstück"
is_root = true
match_function = "contains"
[[law.classifiers]]
name = "letter"
is_root = false
match_function = "starts_with_uppercaseletter"
[[law.classifiers]]
name = "numbering"
is_root = false
match_function = "starts_with_number"
[parser]
remove_strings = [
"<tab />",
"<br />",
"<b>", "</b>",
"<i>", "</i>",
"<n>", "</n>",
"<super>", "</super>",
]
[[parser.replace_rules]]
find = "<gdash />"
replace_with = "-"