Versions in this module Expand all Collapse all v0 v0.0.13 Nov 18, 2026 v0.0.12 Oct 17, 2026 Changes in this version + func RecordInsertion(topicRoot string, row InsertedLink) error + type InsertedLink struct + Mode string + Subject string + Target string + Text string + Time string v0.0.11 Sep 24, 2026 Changes in this version + const BankID + const CandidatesBank + const InsertedLinksFile + const KeyAffects + const LexicalTopK + const MaxCandidates + const OriginLexical + const OriginMention + const OriginStructure + const OriginVector + const RelationContradicts + const RelationRelated + const SkipChanged + const SkipLocked + const SkipNoCandidates + const SkipNotFound + const SkipQuarantined + const SkipUnchanged + const SkipUserKey + const VectorTopK + func CandidateHash(candidates []Candidate) string + func InsertLinks(body string, insertions []Insertion) string + func IsHub(topicRel string) bool + type Candidate struct + Aliases []string + Criterion string + ID string + Origins []string + Path string + Summary string + Title string + type Generator struct + func NewGenerator(articles []*corpus.Document, neighbours Neighbours) *Generator + func (g *Generator) Articles() []*corpus.Document + func (g *Generator) Candidates(ctx context.Context, doc *corpus.Document) []Candidate + func (g *Generator) Mentions(doc *corpus.Document, candidates []Candidate) []corpus.Mention + type Insertion struct + End int + Form string + P float64 + Receipt string + Relation string + Start int + Target string + Text string + type MentionRef struct + Candidate string + End int + N int + Sentence string + Start int + Text string + type Neighbours interface + Neighbours func(ctx context.Context, doc *corpus.Document, k int) ([]string, error) + type Options struct + All bool + DryRun bool + Neighbours Neighbours + Paths []string + type Outcome struct + Added map[string][]string + Contradictions int + Demotions int + Insertions []Insertion + Items []review.Item + Proposals int + Reviews int + Undecided int + Updates map[string]any + func Decide(plan Plan, answers map[string]decisions.Answer, th Thresholds, bodyMode string) Outcome + type Plan struct + BodyLinked map[string]bool + Candidates []Candidate + Doc *corpus.Document + Forms map[string]string + KBOwned map[string]bool + Mentions []MentionRef + Present map[string]map[string]bool + Relations map[string][]string + type Report struct + Applied map[string]int + BodyMode string + Changes []string + Contradictions int + Decided int + Demotions int + Documents int + DryRun bool + Inserted int + Judged int + Proposals int + Reviews int + Skipped map[string]int + Undecided int + UndecidedDocuments []string + func Reverse(ctx context.Context, s *session.Session, articlePath string) (Report, error) + func ReverseAll(ctx context.Context, s *session.Session, articlePaths []string) (Report, error) + func Run(ctx context.Context, s *session.Session, opts Options) (Report, error) + func (r Report) Lines() []string + type Targets struct + func NewTargets(index *resolve.Index, files []resolve.File, topicPrefix string) *Targets + func (t *Targets) Form(topicRel string) string + func (t *Targets) Resolve(fromTopicRel, target string) string + func (t *Targets) Wikilink(topicRel string) string + type Thresholds struct + Affects float64 + Apply float64 + Mention float64 + Review float64 + func ThresholdsFrom(s *session.Session) Thresholds