Possible to capitalize "the" before enemy names in Battle Log?

As you can imagine this kind of thing is practically impossible to search for, but is there a way to auto capitalize the article "the" before an enemy name? For reference, all of the "enemies" in my game are just wild animals encounters. I've found a plugin that will let me change how skills are phrased so I can input "The" or "the" manually, but for things like states that don't let you alter what comes before the name of the affected character, I've hit a dead end on what to do.

I don't know much about what options I have as I tend to overthink things and miss simple solutions, but the way I see it, the two easiest ways to do this involve either a) keeping every animal's name a lower case, and somehow prompting the engine to tack on the appropriate "The" or "the", depending on whether it's the first word in the Battle Log message, or b) entering every animal's name as "the _____" and again, finding a way to trigger capitalization of "the" where appropriate.

If this definitely isn't doable, I'm okay with being told that up front. But if there could be a way, or if anyone has a simpler solution to this, I'd love to hear it. If it makes things easier, there would never be any situation where an enemy's name doesn't begin with "the" in battle, so there's no need to jump through extra steps to make sure it only applies to specific enemies. (My actors have proper names however and should not get "the" added onto them.)

tl;dr can this be achieved
The cat scratches Harold!
Harold scolds the cat!


instead of this
The cat scratches Harold!
Harold scolds The cat!
So...I think my best suggestion is this.

Paste the below into a text editor, save as a *.js file, include as a plugin:
Code:
Window_BattleLog.prototype.addText = function(text) {
    text = text.charAt(0).toUpperCase() + text.slice(1);
    this._lines.push(text);
    this.refresh();
    this.wait();
};

That should automatically capitalize the first letter of anything passed into the battle log - you'd then name your enemies "the blah," lowercase.
So...I think my best suggestion is this.

Paste the below into a text editor, save as a *.js file, include as a plugin:
Code:
Window_BattleLog.prototype.addText = function(text) {
    text = text.charAt(0).toUpperCase() + text.slice(1);
    this._lines.push(text);
    this.refresh();
    this.wait();
};

That should automatically capitalize the first letter of anything passed into the battle log - you'd then name your enemies "the blah," lowercase.

It worked perfectly, thank you!

One thing for anyone using Kenen's CustomSkillMessages though, it will return an error when using that snippet as a separate .js file, whether above or below in the plugin list. In order to make it work, just take ATT_Turan's snippet and place it on line 34 of Kenen's instead of in its own .js file (and then remember to add //by ATT_Turan next to it so you can properly credit everyone when your game is complete!)
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/possible-to-capitalize-the-before-enemy-names-in-battle-log.165662/