The Aenigma library calculates the Relative Complexity Score (RCS) of each sentence in a given body of text. It achieves this by calculating the Flesch-Kincaid score of every individual sentence within the body of text, then comparing them against the mean score.