Function: matchReferences() ​
matchReferences(
works,text,threshold?,onWork?): readonlyMatchResult[]
Defined in: packages/researcher-profiles/src/services/reference-matcher.ts:76
Matches OpenAlex works against reference text using fuzzy title matching.
Parameters ​
works ​
readonly WorksResult[]
OpenAlex works to match
text ​
string
Plain text extracted from the publications file
threshold? ​
number = 0.2
Fuse.js threshold (0 = exact, 1 = anything). Default 0.2.
onWork? ​
(title, score) => void
Optional callback called for each work tested: (title, score | null)
Returns ​
readonly MatchResult[]
Matched works with their best score, sorted by score ascending (lower = better match)