```ts
/**
 * A passage broken into its sentences. Each sentence comes back trimmed of surrounding spaces,
 * and empty pieces are left out.
 */
export function sentenceSplit(passage: string): string[] {
  return passage
    .split(/[.?!]/)
    .map((piece) => piece.trim())
    .filter((piece) => piece !== "");
}
```