Hi GSyren
I don't know if this is of any help at all, but here goes; As I understand it, the rules for Title capitalization and Rating capitalization are different.
Capitalization rules for the rating-field is;
"(...)"Capitalize all words except joining words such as "of", "the", "a", "in"(...)"Capitalization rules for the title:
"(...)"per the Associated Press style title standard"(...)"Here is a description of the updated AP rules;
The Associated Press (AP) 2020 Edition Stylebook Capitalization Rules :
1.) Capitalize the first and the last word.
2.) Capitalize nouns, pronouns, adjectives, verbs (including phrasal verbs such as “play with”), adverbs, and subordinate conjunctions.
3.) Lowercase articles (a, an, the), coordinating conjunctions, and prepositions.
4.) Lowercase the second word in a compound modifier (e.g., Mid-year or On-site).
5.) Capitalize words with four or more letters (including conjunctions and prepositions).
6.) Capitalize both parts of a hyphenated word (new as of 4/25/23).
7.) Capitalize the ‘to’ in an infinitive (e.g., I Want To Play Guitar).
If the tool/program you are writing is for the rating-field only, it should be fairly straight-forward. Capitalize first letter of all words except conjunctions. If it's for both Tile and Rating field, you'll have to do some more programming.
(note that languages other than english may have different rules)