开发者

A/an generator in c#

开发者_Go百科 Merged with Library to determine indefinite article of a noun? [duplicate].

Is there an framework supported way to generate 'a' or 'an' depending on the next word in C# (obviously for English)?

e.g.

var word = "stack";
Console.WriteLine( IndefiniteArticle( word ) + " " + word );
word = "overflow";
Console.WriteLine( IndefiniteArticle( word ) + " " + word );

to print

a stack
an overflow

Thanks Tymek

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜