feat: Added words and sentences.

This commit is contained in:
Spencer Brower
2023-06-20 17:04:49 -04:00
parent fd15af85cb
commit 1485791367
11 changed files with 189 additions and 0 deletions

3
lib/sentences.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
export declare function sentencesLazy(str: string, pattern?: RegExp): Generator<string>;
export declare function sentences(str: string, pattern?: RegExp): string[];
export declare function countSentences(str: string, pattern?: RegExp): number;