summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-24 08:38:39 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-24 08:38:39 +0000
commit3fc133f3d8a0688bc0f7bff3df189e6d900b4c58 (patch)
tree6f7108295ef36e3d708b5c1d4dae9076796d2c3e /crawl-ref/source/libutil.cc
parent83040a103063abbfa9e92105c47bda428ba8e742 (diff)
downloadcrawl-ref-3fc133f3d8a0688bc0f7bff3df189e6d900b4c58.tar.gz
crawl-ref-3fc133f3d8a0688bc0f7bff3df189e6d900b4c58.zip
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
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r--crawl-ref/source/libutil.cc3
1 files changed, 3 insertions, 0 deletions
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;