public Word(string underscored_encoding) { string[] split = underscored_encoding.Split('_'); if (split.Length != 2) { throw new Exception("Expected exactly 1 underscore"); } Content = split[0].ToLower(); PartOfSpeech = ParsingTools.GetWordType(split[1]); }