Minimalist blue graphic with bold white text reading “Cosine Similarity Copywriting” and a subtitle about enhancing copywriting skills using cosine similarity
Visual guide to using cosine similarity for powerful, Ogilvy-style copywriting

Here’s a method to boost the relevance and effectiveness of your content: cosine similarity.
It’s not just keyword research — it’s much more than that. Easy to use, compatible with large language models (LLMs), and widely adopted by these models to analyse content.

Let’s take it step by step

If you have questions, feel free to leave a comment — I’ll be happy to respond.and help you

As I’ve already shared, I’m back in study and research mode. For 2025, I’ve promised myself to dedicate more time to learning and staying up to date.

With all these constant changes, I’m diving deeper into SEO and everything that comes with it: social media strategy, digital PR, alternative search engines, and new optimisation approaches.

I’ve already started shifting my mindset, working more closely with other communication and digital professionals on shared projects.

I find this way of working much more fulfilling.

Now, back to the point: I’ve created an article to calculate content relevance for a specific keyword, generate related keywords (even across different semantic fields), include them in your copy, and assign a relevance score.

Use my method, test cosine similarity. it with different keywords, drop a comment, and let me know if you found it useful. I’m waiting to hear from you.


What is cosine similarity

Cosine similarity measures the cosine of the angle between two non-zero vectors in a multi-dimensional space. It helps determine how similar two documents or pieces of content are based on their vector representations. The resulting similarity score ranges from -1 to 1:

Cosine similarity is a mathematical concept that finds practical application in SEO. It’s especially useful for:

  • Improving content relevance
  • Helping Google recognise and rank your content more effectively

Cosine similarity can be used to measure how relevant a keyword is within a document or across multiple documents.
It’s different from keyword research because it doesn’t just detect keyword presence — it also evaluates their semantic relationship and distribution within the text.

That makes it a perfect choice for enhancing content quality and relevance in advanced SEO or document analysis.

Using cosine similarity allows SEO professionals to:

  • Detect duplicate content : By comparing vector representations of web pages, businesses can identify and resolve duplicate content issues that might harm their rankings.
  • Optimise Internal Linking: Group similar content pages together, improving site navigation and user experience.
  • Audit Content Overlaps: Regular content audits with cosine similarity measures can prevent keyword cannibalisation.

Cosine similarity and large language models

Large Language Models (LLMs) are advanced AI technologies designed to understand and analyse text. While they can read content, they need a system to interpret it.

To analyse content, they use embeddings, which convert text into numeric values. Cosine similarity is one of the methods used to measure how similar those values are.

Let’s say we want to identify the most relevant keywords for the focus keyword “step per dimagrire” using cosine similarity.

Here’s the process using Claude AI

  1. Enter this prompt:
    Identify top keywords related to “step per dimagrire” to achieve best cosine similarity.
  2. In the same chat, use this prompt:
    Using these keywords, write a 400-word SEO-oriented article focused on “step per dimagrire”.
  3. Then, use this prompt:
    Evaluate the cosine similarity score for the keyword “step per dimagrire” within this text.

The first prompt gives you semantically related keywords.
The second prompt creates an optimised article using those keywords.
The third prompt assigns a cosine similarity score.

The score should be close to 80% to be considered effective.

Use my method . to:

  • Detect semantically relevant keywords
  • Generate content with those queries
  • Test the effectiveness of the content using cosine similarity scores

Leave a Reply

Your email address will not be published. Required fields are marked *