Skip to content

Commit

Permalink
RLX: oppdaterte namnereglar
Browse files Browse the repository at this point in the history
  • Loading branch information
hal45 committed Oct 6, 2022
1 parent 6821199 commit 76752ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 37 deletions.
1 change: 1 addition & 0 deletions apertium-nob
Submodule apertium-nob added at 682119
50 changes: 13 additions & 37 deletions apertium-nob.nob.rlx
Original file line number Diff line number Diff line change
Expand Up @@ -1152,20 +1152,20 @@ APPEND:np-guess-mwe-cmp ("$1"v np cgguess) TARGET ("<([A-ZÆØÅ][a-zæøå]

# Forbokstavord, genitiv: "UNFCCCs avgjørelse", "pave Benedict XVIs tale"
APPEND:np-guess-nom ("$1"v np org cgguess gen) TARGET ("<([\\p{Lu}]+[\\p{Lu}\\p{Pd}\\p{Nd}]+)(s|'|’)>"r) IF
(0 ukjent + forbokstavord-genitiv)
(0C ukjent + forbokstavord-genitiv)
;
# Forbokstavord: "UNFCCC", "(pave Benedict) XVI"
APPEND:np-guess-nom ("$1"v np org cgguess) TARGET ("<([\\p{Lu}]+[\\p{Lu}\\p{Pd}\\p{Nd}]+)>"r) IF
(0 ukjent + forbokstavord)
(0C ukjent + forbokstavord)
;
# Forbokstavord + små bokstavar, genitiv: "ZDNets brukere", "CMores program"
APPEND:np-guess-nom ("$1"v np org cgguess gen) TARGET ("<(\\p{Lu}{2}[\\p{L}\\p{Nd}]+)(s|'|’)>"r) IF
(0 ukjent + forbokstavord-blanda-genitiv)
(0C ukjent + forbokstavord-blanda-genitiv)
(1 n + ind OR adj + def)
;
# Forbokstavord + små bokstavar: "ZDNet", "CMore"
APPEND:np-guess-nom ("$1"v np org cgguess) TARGET ("<(\\p{Lu}{2}[\\p{L}\\p{Nd}]+)>"r) IF
(0 ukjent + forbokstavord-blanda)
(0C ukjent + forbokstavord-blanda)
;

"<de>"i SELECT:de-Roquefort np + attr IF
Expand Down Expand Up @@ -1318,74 +1318,50 @@ APPEND:np-guess-nom ("$1"v np org cgguess) TARGET ("<(\\p{Lu}{2}[\\p{L}\\p{N

# Arabiske etternamn på al-/Al- eller bin-/Bin-, genitiv: "Al-Amiris familie", "al-Nahyans familie"
APPEND:np-guess-nom ("$1"v np cog cgguess gen) TARGET ("<((al|Al|bin|Bin)-\\p{Lu}\\p{Ll}+)(s|'|’)>"r) IF
(0 ukjent + forbokstavord-blanda)
(0C ukjent + forbokstavord-blanda)
(-1 np + ant OR np + cog)
(1 n + ind OR adj + def)
;
# Arabiske etternamn på al-/Al- eller bin-/Bin-: "(Jim) Al-Khalili", "(Walid) al-Kubaisi", "Mohammed bin Zayed"
APPEND:np-guess-nom ("$1"v np cog cgguess) TARGET ("<((al|Al|bin|Bin)-\\p{Lu}\\p{Ll}+)>"r) IF
(0 ukjent + forbokstavord-blanda)
(0C ukjent + forbokstavord-blanda)
(-1 np + ant OR np + cog)
;
# Arabiske namn på al-/Al- eller bin-/Bin-, genitiv: "Al-Qaidas soldater", "al-Nahyans tale"
APPEND:np-guess-nom ("$1"v np cgguess gen) TARGET ("<((al|Al|bin|Bin)-\\p{Lu}\\p{Ll}+)(s|'|’)>"r) IF
(0 ukjent + forbokstavord-blanda)
(0C ukjent + forbokstavord-blanda)
(1 n + ind OR adj + def)
;
# Arabiske namn på al-/Al- eller bin-/Bin- utan kontekst: "al-Nusra", "Al-Amiri"
APPEND:np-guess-nom ("$1"v np cgguess) TARGET ("<((al|Al|bin|Bin)-\\p{Lu}\\p{Ll}+)>"r) IF
(0 ukjent + forbokstavord-blanda)
;
# Arabiske namn etter al/Al eller bin/Bin, genitiv: "al Nahyans familie", "Al Qaidas soldater", også "Al Gores kampanje"
APPEND:np-guess-nom ("$1"v np cog cgguess gen) TARGET ("<(\\p{Lu}\\p{Ll}+)(s|'|’)>"r) IF
(0 ukjent + titlecase)
(-1 ("al") + np + attr OR ("bin") + np + attr)
(-2 np + ant OR np + cog)
(1 n + ind OR adj + def)
;
# Arabiske namn al/Al eller bin/Bin: "al Noor", "Al Amiri", "al Nusra", "bin Khaled"
APPEND:np-guess-nom ("$1"v np cog cgguess) TARGET ("<(\\p{Lu}\\p{Ll}+)>"r) IF
(0 ukjent + titlecase)
(-1 ("al") + np + attr OR ("bin") + np + attr)
(-2 np + ant OR np + cog)
;
# Arabiske namn etter al/Al eller bin/Bin, genitiv: "al Nahyans familie", "Al Qaidas soldater", også "Al Gores kampanje"
APPEND:np-guess-nom ("$1"v np cgguess gen) TARGET ("<(\\p{Lu}\\p{Ll}+)(s|'|’)>"r) IF
(0 ukjent + titlecase)
(-1 ("al") + np + attr OR ("bin") + np + attr)
(1 n + ind OR adj + def)
;
# Arabiske namn al/Al eller bin/Bin: "al Noor", "Al Amiri", "al Nusra", "bin Khaled"
APPEND:np-guess-nom ("$1"v np cgguess) TARGET ("<(\\p{Lu}\\p{Ll}+)>"r) IF
(0 ukjent + titlecase)
(-1 ("al") + np + attr OR ("bin") + np + attr)
(0C ukjent + forbokstavord-blanda)
;

# Etternamn med samanskrive attributt, genitiv: "DeNiros film", "DiCaprios rolle"
APPEND:np-guess-nom ("$1"v np cog cgguess gen) TARGET ("<((De|Di|Mac|Mc)\\p{Lu}\\p{Ll}+)(s|'|’)>"r) IF
(0 ukjent + forbokstavord-blanda-genitiv)
(0C ukjent + forbokstavord-blanda-genitiv)
(1 n + ind OR adj + def)
;
# Etternamn med samanskrive attributt, genitiv: "DeNiro", "DiCaprio"
APPEND:np-guess-nom ("$1"v np cog cgguess) TARGET ("<((De|Di|Mac|Mc)\\p{Lu}\\p{Ll}+)>"r) IF
(0 ukjent + forbokstavord-blanda)
(0C ukjent + forbokstavord-blanda)
;

# Etternamn etter fornamn, etternanm, initial eller attributt, genitiv: "De Biasis' familie", "von der Leyens tale", "Mac Allisters skåring", "H.G. Wells' mesterverk"
APPEND:np-guess-nom ("$1"v np cog cgguess gen) TARGET ("<(\\p{Lu}\\p{Ll}+(-\\p{Lu}\\p{Ll}+)?)(s|'|’)>"r) IF
(0 ukjent + forbokstavord-blanda)
(0C ukjent + forbokstavord-blanda)
(-1 np + attr OR np + cog OR np + ant OR np + init)
(1 n + ind OR adj + def)
;
# Etternamn etter fornamn, etternamn, initial eller attributt: "Roger Valhmmer", "Garcia Vilsanches", "Di Maio", "van den Berg", "W.H. Auden", "Norbert Walter-Borjans"
APPEND:np-guess-nom ("$1"v np cog cgguess) TARGET ("<(\\p{Lu}\\p{Ll}+(-\\p{Lu}\\p{Ll}+)?)>"r) IF
(0 ukjent + forbokstavord-blanda)
(0C ukjent + forbokstavord-blanda)
(-1 np + attr OR np + cog OR np + ant OR np + init)
;

# Fornamn før fornamn, etternanm, initial eller attributt (aldri genitiv): "Aretha Franklin", "Garcia Vilsanches", "Tilmann von Soest", "Esteban Garcia Vilsanches", "Terrence K. Williams"
APPEND:np-guess-nom ("$1"v np ant cgguess) TARGET ("<(\\p{Lu}\\p{Ll}+(-\\p{Lu}\\p{Ll}+)?)>"r) IF
(0 ukjent + forbokstavord-blanda)
(0C ukjent + forbokstavord-blanda)
(1 np + attr OR np + cog OR np + ant OR np + init)
;

Expand Down

0 comments on commit 76752ba

Please sign in to comment.