public NorwegianLightStemFilterFactory(Map<String,String> args) {super(args);String variant = get(args, "variant");if (variant == null || "nb".equals(variant)) {flags = BOKMAAL;} else if ("nn".equals(variant)) {flags = NYNORSK;} else if ("no".equals(variant)) {flags = BOKMAAL | NYNORSK;} else {throw new IllegalArgumentException("invalid variant: " + variant);}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
public NorwegianLightStemFilterFactory(IDictionary<string, string> args): base(args){string variant = Get(args, "variant");if (variant == null || "nb".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL;}else if ("nn".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.NYNORSK;}else if ("no".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL | NorwegianStandard.NYNORSK;}else{throw new System.ArgumentException("invalid variant: " + variant);}if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}