func Stem(word, language string, stemStopWords bool) (stemmed string, err error) {

	var f func(string, bool) string
	switch language {
	case "english":
		f = english.Stem
	case "spanish":
		f = spanish.Stem
	case "french":
		f = french.Stem
	case "russian":
		f = russian.Stem
	case "swedish":
		f = swedish.Stem
	case "norwegian":
		f = norwegian.Stem
	default:
		err = fmt.Errorf("Unknown language: %s", language)
		return
	}
	stemmed = f(word, stemStopWords)
	return

}
func Stem(word, language string, stemStopWords bool) (stemmed string, err error) {

	var f func(string, bool) string
	switch language {
	case "english":
		f = english.Stem
	case "spanish":
		f = spanish.Stem
	case "french":
		f = french.Stem
	case "russian":
		f = russian.Stem
	case "swedish":
		f = swedish.Stem
	case "norwegian":
		f = norwegian.Stem
	default:
		err = fmt.Errorf("Unknown language: %s", language)
		return
	}
	stemmed = f(word, stemStopWords)
	return

}
func Stem ( word , language string , stemStopWords bool ) ( stemmed string , err error ) { var f func ( string , bool ) string switch language { case " " : f = english . Stem case " " : f = spanish . Stem case " " : f = french . Stem case " " : f = russian . Stem case " " : f = swedish . Stem case " " : f = norwegian . Stem default : err = fmt . Errorf ( " " , language ) return } stemmed = f ( word , stemStopWords ) return }
// Stem a word in the specified language.
//
Stem a word in the specified language .