fix: catch the gender-colon suffix (Entwickler:in), not just slash

"Senior Full Stack Entwickler:in 80-100 %" (ZHAW, via job-room.ch)
used the colon-gender notation instead of a slash, and Entwickler
wasn't on the German-word list either, so it slipped through.
Verified against jobs.csv history: catches 31 titles using ':in'
(Berater:in, Manager:in, Analyst:in, etc.), zero false positives.
This commit is contained in:
2026-09-04 13:09:19 +02:00
parent 274f946bd2
commit db396d0a45
+6 -2
View File
@@ -75,8 +75,12 @@ export const NON_ENGLISH_RE = new RegExp(
String.raw`\s\(a\)(\s*[\d%]|\s*$)`, String.raw`\s\(a\)(\s*[\d%]|\s*$)`,
// German/Swiss umlauts and ß // German/Swiss umlauts and ß
String.raw`[äöüÄÖÜß]`, String.raw`[äöüÄÖÜß]`,
// /in word-ending (e.g. Mitarbeiter/in) — excludes m/f, n/a, etc. // /in word-ending (e.g. Mitarbeiter/in) — excludes m/f, n/a, etc. Also
String.raw`[a-zäöü]\/in\b`, // catches the gender-colon variant (Entwickler:in) — ZHAW's "Senior Full
// Stack Entwickler:in 80-100 %" (via job-room.ch) used ":in" and slipped
// past both this rule (slash-only) and the word list ("Entwickler" wasn't
// on it either).
String.raw`[a-zäöü][\/:]in\b`,
// German-only words (case-insensitive handled by flag) // German-only words (case-insensitive handled by flag)
String.raw`\b(Deine|Mitarbeiter|Pflegehelfer|Köchin|Koch EFZ|Kellner|Sozialpädagog|Lehrperson|Produktionsmitarbeiter|Produktionsplaner|Geschäftsführer|Spontanbewerbung|Arztsekretär|Physiotherapeut|Empfangsmitarbeiter|Automobilmechatroniker|Verkäufer|Projektleiter|Crewmitarbeiter|Crewmember|Systemgastronomie|Studienteilnehmende|Teilnehmende|Bauingenieur|Tiefbau|Hochbau|Elektroingenieur|Maschinenbau|gesucht|EFZ|Schweiz|Filiale|Ingenieur|Spezialist|Perspektive|Stellvertretung|Leitung|Beratung|Entwicklung|Betreuung|Verwaltung)\b`, String.raw`\b(Deine|Mitarbeiter|Pflegehelfer|Köchin|Koch EFZ|Kellner|Sozialpädagog|Lehrperson|Produktionsmitarbeiter|Produktionsplaner|Geschäftsführer|Spontanbewerbung|Arztsekretär|Physiotherapeut|Empfangsmitarbeiter|Automobilmechatroniker|Verkäufer|Projektleiter|Crewmitarbeiter|Crewmember|Systemgastronomie|Studienteilnehmende|Teilnehmende|Bauingenieur|Tiefbau|Hochbau|Elektroingenieur|Maschinenbau|gesucht|EFZ|Schweiz|Filiale|Ingenieur|Spezialist|Perspektive|Stellvertretung|Leitung|Beratung|Entwicklung|Betreuung|Verwaltung)\b`,
// German prepositions/articles in title context (must appear as whole words) — // German prepositions/articles in title context (must appear as whole words) —