MCPcopy Index your code
hub / github.com/eslsoft/engra

github.com/eslsoft/engra @v0.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.0 ↗ · + Follow
483 symbols 1,149 edges 33 files 27 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

engra

一本由所有学习者共同编写的英语词根词缀词典

Goal

  1. 提供词根与单词的结构化关系数据
  2. 提供单词与单词的结构化关系数据
  3. 提供GraphQL接口

Non-Goal

  1. 提供丰富的解释
  2. 提供丰富例句
  3. 提供音标朗读文件

数据概览

名称 单词量 词根覆盖度
CEFR-A1 592 67.23%
CEFR-A2 888 67.45%
CEFR-B1 1390 72.66%
CEFR-B2 1746 74.34%
CEFR-C1 1010 73.07%
CEFR-C2 1011 68.15%
CET4 2607 74.95%
CET6 2345 71.86%
GMAT 3047 62.42%
GRE 6515 45.22%
IELTS 3575 67.41%
KaoYa 3728 68.86%
SAT 4463 49.09%
TOEFL 4264 63.95%

使用

Graphql

```graphql endpoint doc http://localhost:8081/


```graphql
{
    vocabularies(name: "weight") {
        ...vocabularyWithChildren
    }
}

fragment vocabulary on Vocabulary {
    name
}

fragment vocabularyWithChildren on Vocabulary {
    ...vocabulary
    children {
        ...vocabulary
        children {
            ...vocabulary
            children {
                ...vocabulary
                children {
                    ...vocabulary
                }
            }
        }
    }
}

迭代计划

  • [x] 建立词根库
  • [x] 从公开渠道爬取单词词根的数据并补充到词根库中
  • [ ] 建立分级库及词频库,根据分级和词频进行优先级排序
  • [ ] 按照优先级检查是否已经在词根库中,如果不再则人工补充
  • [ ] 长期的人工补充工作(在前端页面查不到时引导到创建issue及PR)

参考

Extension points exported contracts — how you extend this code

Dict (Interface)
This file will not be regenerated automatically. It serves as dependency injection for your app, add any dependencies y [1 …
apis/graph/resolver.go

Core symbols most depended-on inside this repo

clone
called by 4
pkg/dal/query/gen.go
NewWordRoot
called by 3
pkg/dict/wordroot.go
Use
called by 3
pkg/dal/query/gen.go
GetWords
called by 3
dict/words.go
Save
called by 2
pkg/dict/wordroot.go
NewDict
called by 2
pkg/dict/dict.go
Find
called by 2
pkg/dict/dict.go
startsWithNum
called by 1
script/main.go

Shape

Method 397
Function 53
Struct 28
Interface 5

Languages

Go100%

Modules by API surface

apis/graph/generated.go158 symbols
pkg/dal/query/vocabularies.gen.go111 symbols
pkg/dal/query/roots_affixes.gen.go111 symbols
pkg/dal/query/gen.go17 symbols
script/main.go11 symbols
apis/client/generated.go10 symbols
pkg/dict/dict.go8 symbols
pkg/ra/ra.go6 symbols
pkg/dict/levelcounter.go5 symbols
pkg/waibo/search.go4 symbols
apis/graph/schema.resolvers.go4 symbols
apis/graph/resolver.go4 symbols

For agents

$ claude mcp add engra \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact