Morningstar Quantitative Ratings for Stocks are generated using an algorithm that compares companies that are not under analyst coverage to peer companies that do receive analyst-driven ratings.
If you work with strings in your Python scripts and you're writing obscure logic to process them, then you need to look into ...