ionian/packages/server/src/search/tokenizer.ts

10 lines
180 B
TypeScript
Raw Normal View History

2024-03-26 23:58:26 +09:00
export interface ITokenizer {
tokenize(s: string): string[];
}
export class DefaultTokenizer implements ITokenizer {
tokenize(s: string): string[] {
return s.split(" ");
}
}