code: func (extr *ContentExtractor) GetMetaLanguage(document *goquery.Document) string {
  	var language string
  	shtml := document.Find("html")
  	attr, _ := shtml.Attr("lang")
  	if attr == "" {
  		attr, _ = document.Attr("lang")
  	}
  	if attr == "" {
  		selection := document.Find("meta").EachWithBreak(func(i int, s *goquery.Selection) bool {
  			var exists bool
  			attr, exists = s.Attr("http-equiv")
  			if exists && attr == "content-language" {
  				return false
  			}
  			return true
  		})
  		if selection != nil {
  			attr, _ = selection.Attr("content")
  		}
  	}
  	idx := strings.LastIndex(attr, "-")
  	if idx == -1 {
  		language = attr
  	} else {
  		language = attr[0:idx]
  	}
  
  	_, ok := sw[language]
  
  	if language == "" || !ok {
  		language = extr.config.stopWords.SimpleLanguageDetector(shtml.Text())
  		if language == "" {
  			language = defaultLanguage
  		}
  	}
  
  	extr.config.targetLanguage = language
  	return language
  }
docs: // GetMetaLanguage returns the meta language set in the source, if the article has one