import stripDiacritics from './diacritics';
import punctuation from './punctuation';
const serialize = function serialize(...args) {
  const punc = new RegExp(`[${punctuation}]`, 'g');
  const key = args.map(string => string && stripDiacritics(`${string}`).toLowerCase().replace(punc, '').split(' ')).flat().filter(Boolean);
  return key;
};
export default serialize;