oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package thintest
2
3import (
4 "regexp"
5 "strings"
6)
7
8// MachineryWords are the words for Equipo's machinery that nothing Base
9// shows a person may carry (spec 2026-11-26-assistant-abilities, the
10// jobs plan's machinery_words): Base and its Assistant name outcomes,
11// never how they are made.
12var MachineryWords = []string{"Equipo", "team", "Coordinator", "runner", "task", "branch", "merge", "check", "repository", "Amadan"}
13
14// MachineryIn is the first machinery word text carries as a word of its
15// own (any case), "" for none.
16func MachineryIn(text string) string {
17 for _, w := range MachineryWords {
18 if regexp.MustCompile(`(?i)\b` + regexp.QuoteMeta(strings.ToLower(w)) + `s?\b`).MatchString(text) {
19 return w
20 }
21 }
22 return ""
23}
24