private static CharArraySet getDefaultStopwords ( String language ) { switch ( language ) { case "English" : return EnglishAnalyzer . getDefaultStopSet ( ) ; case "French" : return FrenchAnalyzer . getDefaultStopSet ( ) ; case "Spanish" : return SpanishAnalyzer . getDefaultStopSet ( ) ; case "Portuguese" : return PortugueseAnalyzer . getDefaultStopSet ( ) ; case "Italian" : return ItalianAnalyzer . getDefaultStopSet ( ) ; case "Romanian" : return RomanianAnalyzer . getDefaultStopSet ( ) ; case "German" : return GermanAnalyzer . getDefaultStopSet ( ) ; case "Dutch" : return DutchAnalyzer . getDefaultStopSet ( ) ; case "Swedish" : return SwedishAnalyzer . getDefaultStopSet ( ) ; case "Norwegian" : return NorwegianAnalyzer . getDefaultStopSet ( ) ; case "Danish" : return DanishAnalyzer . getDefaultStopSet ( ) ; case "Russian" : return RussianAnalyzer . getDefaultStopSet ( ) ; case "Finnish" : return FinnishAnalyzer . getDefaultStopSet ( ) ; case "Irish" : return IrishAnalyzer . getDefaultStopSet ( ) ; case "Hungarian" : return HungarianAnalyzer . getDefaultStopSet ( ) ; case "Turkish" : return SpanishAnalyzer . getDefaultStopSet ( ) ; case "Armenian" : return SpanishAnalyzer . getDefaultStopSet ( ) ; case "Basque" : return BasqueAnalyzer . getDefaultStopSet ( ) ; case "Catalan" : return CatalanAnalyzer . getDefaultStopSet ( ) ; default : return CharArraySet . EMPTY_SET ; } }
Returns the default stopwords set used by Lucene language analyzer for the specified language .