John Mueller said in a webmaster hangout on YouTube that the anchor text of a link is more important than the text around the link.
“[The text around a link is] secondary, like that really strong piece of context from the anchor text that’s missing in that case. And then small things around the side that does help us a little bit […]
[Page content is] something we do definitely take into account but it’s very secondary. […] The anchor text is really the primary thing.”
You can view the video here:
How to analyze anchor texts and context
The Link Profiler tool in SEOprofiler analyzes the anchor texts and the page contexts of the pages that link to your website (and many more things):