import domify from '../../utils/domify/domify' ; import getTrimmedTextContent from '../../utils/getTrimmedTextContent/getTrimmedTextContent' ; const extractHeadword = ( pageMarkup ) => { const headwordNode = domify ( pageMarkup ) . querySelector ( '.entry_content h1.pagetitle' ) ; const headword = getTrimmedTextContent ( headwordNode ) ; return headword ; } ; export default extractHeadword ;