Fix name determiner util to exclude "u"
This commit is contained in:
@@ -1922,11 +1922,16 @@ function doesWordStartWithVowel(word) {
|
|||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
function getProperDeterminerForName(word) {
|
function getProperDeterminerForName(word) {
|
||||||
if(doesWordStartWithVowel(word)) {
|
switch(word.substr(0,1).toLowerCase()) {
|
||||||
return "an";
|
case "a":
|
||||||
}
|
case "e":
|
||||||
|
case "i":
|
||||||
|
case "o":
|
||||||
|
return "an";
|
||||||
|
|
||||||
return "a";
|
default:
|
||||||
|
return "a";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -1936,4 +1941,3 @@ function applyOffsetToVector3(position, position2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user