code: function _getLanguageSampleText( doc, lang ) {
      // First find non-empty text content of a hint with that lang attribute.
      // If not found, find any span with that lang attribute.
      const langSampleEl = doc.get( `/root/form//span[contains(@class, "or-hint") and @lang="${lang}" and normalize-space() and not(./text() = '-')]` ) ||
          doc.get( `/root/form//span[@lang="${lang}" and normalize-space() and not(./text() = '-')]` );
  
      return ( langSampleEl && langSampleEl.text().trim().length ) ? langSampleEl.text() : 'nothing';
  }
docs: Obtains a non-empty hint text or other text sample of a particular form language.
  
  @param  {[type]} doc  libxmljs object
  @param  {string} lang language
  @return {string}      the text sample