From 3fc133f3d8a0688bc0f7bff3df189e6d900b4c58 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 24 Jun 2008 08:38:39 +0000 Subject: The indefinite article for any string starting with "one-way" is "a", not "an". A hack, but then so is the English language. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6109 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libutil.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref') diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index 9a9408910f..364d5bf3de 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -273,6 +273,9 @@ std::string article_a(const std::string &name, bool lowercase) { case 'a': case 'e': case 'i': case 'o': case 'u': case 'A': case 'E': case 'I': case 'O': case 'U': + // XXX: Hack + if (starts_with(name, "one-way")) + return a + name; return an + name; default: return a + name; -- cgit v1.2.3-54-g00ecf