예제 #1
0
        public static string Feminine(string x)
        {
            if (irregular_feminine.TryGetValue(x, out string ret))
            {
                return(ret);
            }

            if (elided_adj_nouns.TryGetValue(x, out KeyValuePair <string, string> test))
            {
                return(test.Key + Noun.Feminine(test.Value));
            }

            return(x);
        }
예제 #2
0
        public static string Feminine(this string name)
        {
            KeyValuePair <string, string>?test = name.SplitLastWord();

            if (null != test)
            {
                if ("male" == test.Value.Key.ToLowerInvariant())
                {
                    return("female " + test.Value.Value);
                }
                return(test.Value.Key + " " + Noun.Feminine(test.Value.Value));
            }
            return(Noun.Feminine(name));
        }