feat: exclude titles that name unwanted languages or roles

This commit is contained in:
2026-11-25 09:39:13 +01:00
parent 44bb3fd46a
commit f7dcbb9c14
2 changed files with 30 additions and 1 deletions
+19 -1
View File
@@ -58,6 +58,23 @@ type Job struct {
DetailURL string
}
// excludeTitles drops a job when its title names one of these, whole words
// only ("Java" does not match "JavaScript"). Add languages or role names here.
var excludeTitles = []string{
// languages
"Java", "Haskell", "C++", "C#", ".NET", "Scala", "Kotlin", "PHP", "Ruby", "Perl",
// roles
"Forward Deployed",
}
var reExcluded = func() *regexp.Regexp {
words := make([]string, len(excludeTitles))
for i, w := range excludeTitles {
words[i] = regexp.QuoteMeta(w)
}
return regexp.MustCompile(`(?i)(^|[^a-z0-9.])(` + strings.Join(words, "|") + `)([^a-z0-9+#]|$)`)
}()
var (
// The search profile: backend and fullstack roles in the Netherlands.
reWantTitle = regexp.MustCompile(`(?i)back[- ]?end|full[- ]?stack|software (engineer|developer|ontwikkelaar)|python|golang|django|\bgo (engineer|developer)`)
@@ -68,7 +85,8 @@ var (
// wanted is the cheap filter that runs before Claude sees anything.
func wanted(j Job) bool {
if !reNL.MatchString(j.Location) || !reWantTitle.MatchString(j.Title) || reSkipTitle.MatchString(j.Title) {
if !reNL.MatchString(j.Location) || !reWantTitle.MatchString(j.Title) ||
reSkipTitle.MatchString(j.Title) || reExcluded.MatchString(j.Title) {
return false
}
// "Frontend engineer" is out, "Fullstack (frontend-leaning)" stays in.