@deanzoo/voice-intent-nlu
v0.8.2
Published
Standalone Hebrew voice-intent NLU library (no LLM, rule-based).
Readme
@deanzoo/voice-intent-nlu
Standalone, framework-agnostic Hebrew voice-intent NLU. No LLM. No mic, no STT, no UI — pure transcript → intent.
Install
npm i @deanzoo/voice-intent-nluRequires .npmrc in consumer:
@deanzoo:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_PAT}Usage
import { createParser, lessonRuleset } from '@deanzoo/voice-intent-nlu';
const parser = createParser({ rulesets: [lessonRuleset] });
const result = parser.parse('תקבע שיעור לדני מחר בארבע', {
students: [{ id: '1', fullName: 'דני כהן' }],
now: new Date(),
pending: null,
});
// → { intent: 'create_lesson', fields: { studentId: '1', date: '...', startTime: '16:00' }, ... }Multi-turn slot filling: pass result.pending back as pending on the next call.
Opt-in extended taxonomy
import {
createParser, lessonRuleset, testRuleset, vacationRuleset, sicknessRuleset,
} from '@deanzoo/voice-intent-nlu';
const parser = createParser({
rulesets: [lessonRuleset, testRuleset, vacationRuleset, sicknessRuleset],
});Registry order = precedence; tiebreak by trigger-hit confidence.
License
UNLICENSED (private).
