As cool as that story is, it’s not correct. Taken from https://pubs.aip.org/physicstoday/article/71/1/46/819012/Mary-Somerville-s-vision-of-scienceThe-Scottish
“Mary Somerville’s iconic status is often summed up by stating that William Whewell, in his review of her book On the Connexion of the Physical Sciences, hailed her as the first “scientist.” But almost exactly the opposite was the case. Nowhere did Whewell or anyone else in her lifetime ever call Somerville a scientist, nor is it a word, so far as we know, that she ever used herself. By our current understanding of the term, Somerville can certainly be called a scientist, but for her contemporaries she belonged to a higher and more profound category entirely.”