matcher

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

CANARY: REQ=CP-253; FEATURE="FuzzyMatcher"; ASPECT=Engine; STATUS=TESTED; TEST=TestCANARY_CBIN_133_Engine_Levenshtein; OWNER=canary; UPDATED=2026-08-29

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateLevenshtein

func CalculateLevenshtein(s1, s2 string) int

CalculateLevenshtein computes edit distance between two strings

func ScoreMatch

func ScoreMatch(query, candidate string) int

ScoreMatch calculates similarity score (0-100) between query and candidate

Types

type Match

type Match struct {
	ReqID       string
	FeatureName string
	Score       int
	SpecPath    string
}

Match represents a fuzzy match result

func FindBestMatches

func FindBestMatches(query string, specsDir string, limit int) ([]Match, error)

FindBestMatches returns top N matches for query

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL