Skip to content

query: "get" survives stopwording and exact-matches framework hubs like a NestJS Get decorator, hijacking BFS seeds (follow-up to #1602) #4684

Closed

Description

@AndresDiagoM

What happened?

"get" is one of the most common verbs in natural-language questions ("how does X get
authorized", "where do we get the totals"), but it is not in _QUERY_STOPWORDS. In codebases
whose framework exports a symbol named Get (NestJS @Get(), many HTTP routers), that symbol is
a node imported by nearly every controller. The query term get exact-matches its label and
receives _EXACT_MATCH_BONUS, so the decorator becomes a BFS seed for any question that contains
"get", and the traversal spends its budget in the controller layer.

#1602 guarded against a generic term exact-matching a short, low-degree leaf. Here the matched
node is the opposite, a high-degree hub, so that guard doesn't apply. The work/works/working
entries already handle the same pattern for "how does X work".

Steps to reproduce

python -c "from graphify.serve import _query_terms; print(_query_terms('how does payroll.approve get authorized'))"
# ['payroll', 'approve', 'get', 'authorized']

graphify query "how does payroll.approve get authorized" --budget 400

Error output or graph output

On a ~36k-node NestJS + Next.js graph:

Graph: graphify-out/graph.json (35775 nodes) | Traversal: BFS depth=2 | Start: ['AUTHORIZED', 'Payroll', 'Get', 'approve-bill-dialog.tsx'] | 168 nodes found
NODE Get [src= loc= community=QueryLogsDto]

Get (the NestJS decorator import) is one of four seeds. Expected: no seed chosen for "get".

Proposed fix

Add get, gets, got, getting to the English part of _QUERY_STOPWORDS, with a comment like
the work one. The all-stopwords fallback in _query_terms keeps a bare graphify query "get"
working, and explain "Get" / find_node are unaffected because node text is never filtered.
Trade-off: a question about the HTTP verb ("GET /invoices") loses the term "get", but keeps its
content terms ("invoices").

I have a PR ready with the stopword change and regression tests (term filtering, the all-stopword
fallback, and a seed-selection test with a high-degree Get hub).

Graphify version

0.9.94 (also checked against v8 at the time of filing: "get" not in _QUERY_STOPWORDS)

Operating System

Linux (WSL2, Ubuntu 22.04)

Activity

  1. github-actions commented on Oct 22, 2026

    @github-actions

    Thanks for opening this issue, @AndresDiagoM. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

  2. added a commit that references this issue on Oct 27, 2026
    7999564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions