export interface ITokenizer { tokenize(s: string): string[]; } export class DefaultTokenizer implements ITokenizer { tokenize(s: string): string[] { return s.split(" "); } }