import { DomUniverse } from '@ephox/boss';

import type { WordScope } from '../../data/WordScope';
import * as Words from '../general/Words';

const universe = DomUniverse();

const identify = (allText: string): WordScope[] => {
  return Words.identify(allText);
};

const isWord = (text: string): boolean => {
  return Words.isWord(universe, text);
};

export {
  identify,
  isWord
};
