@bonginkan/maria
Version:
MARIA OS v5.9.5 – Self-Evolving Organizational Intelligence OS | Speed Improvement Phase 3: LLM Optimization + Command Refactoring | Performance Measurement + Run Evidence System | Zero ESLint/TypeScript Errors | 人とAIが役割を持ち、学び、進化し続けるための仕事のOS | GraphRAG ×
42 lines (41 loc) • 1.17 kB
TypeScript
export interface ProcessedInput {
original: string;
normalized: string;
tokens: string[];
stems: string[];
entities: Entity[];
language: string;
sentiment?: number;
_keywords: string[];
}
export interface Entity {
text: string;
type: "code" | "file" | "url" | "number" | "command" | "language" | "framework";
value: unknown;
position: number;
}
export declare class NaturalLanguageProcessor {
private stopWords;
private contractionMap;
private initialized;
constructor();
initialize(): Promise<void>;
process(input: string, language?: string): Promise<ProcessedInput>;
private normalize;
private tokenize;
private tokenizeEnglish;
private tokenizeJapanese;
private tokenizeChinese;
private tokenizeKorean;
private stem;
private extractEntities;
private extractKeywords;
private normalizeJapanese;
private normalizeChinese;
private normalizeKorean;
private normalizeVietnamese;
private tokenizeVietnamese;
private initializeStopWords;
private initializeContractions;
detectIntent(processedInput: ProcessedInput): Promise<string[]>;
}