aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage/util.cpp')
-rw-r--r--engines/wage/util.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/wage/util.cpp b/engines/wage/util.cpp
index 0bed88e46f..8dac0d2935 100644
--- a/engines/wage/util.cpp
+++ b/engines/wage/util.cpp
@@ -87,4 +87,16 @@ Common::Rect *readRect(Common::SeekableReadStream *in) {
return new Common::Rect(x1, y1, x2, y2);
}
+const char *getIndefiniteArticle(String &word) {
+ switch (word[0]) {
+ case 'a': case 'A':
+ case 'e': case 'E':
+ case 'i': case 'I':
+ case 'o': case 'O':
+ case 'u': case 'U':
+ return "an ";
+ }
+ return "a ";
+}
+
} // End of namespace Wage