/**
 * Converts string to Sentence case.
 * Splits on camelCase, PascalCase, dots, underscores, hyphens, and non-alphanumeric characters.
 * Drop-in replacement for the sentence-case package.
 */
import words from './words';
export default function sentenceCase(input) {
    const parts = words(input);
    if (parts.length === 0) {
        return '';
    }
    return parts
        .map((w, i) => (i === 0 ? w.charAt(0).toUpperCase() + w.slice(1).toLowerCase() : w.toLowerCase()))
        .join(' ');
}
