MCPcopy Create free account
hub / github.com/bytebase/bytebase / isStopWord

Function isStopWord

backend/api/mcp/openapi_index.go:274–283  ·  view source on GitHub ↗
(word string)

Source from the content-addressed store, hash-verified

272}
273
274func isStopWord(word string) bool {
275 stopWords := map[string]bool{
276 "the": true, "a": true, "an": true, "and": true, "or": true,
277 "is": true, "are": true, "was": true, "were": true,
278 "in": true, "on": true, "at": true, "to": true, "for": true,
279 "of": true, "with": true, "by": true, "from": true,
280 "service": true, "request": true, "response": true,
281 }
282 return stopWords[word]
283}
284
285// isPrimaryCRUD returns true if the method is a primary CRUD operation without prefixes.
286func isPrimaryCRUD(method string) bool {

Callers 1

extractKeywordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected