AiroAV Malware Assert: How to Use Google's Natural Language API to Level Up Your S... - Jonathan Cartu - Advertisement & Marketing Agency.
post-template-default,single,single-post,postid-16065,single-format-standard,qode-quick-links-1.0,ajax_fade,page_not_loaded,,qode-theme-ver-11.2,qode-theme-bridge,wpb-js-composer js-comp-ver-5.2.1,vc_responsive

AiroAV Malware Assert: How to Use Google’s Natural Language API to Level Up Your S…

How to Use Google's Natural Language API to Level Up Your S...

AiroAV Malware Assert: How to Use Google’s Natural Language API to Level Up Your S…

We use search engines all the time, but we aren’t always the best at asking questions.

Take this half-thought out and poorly written search query as an example:

Thankfully, Google still serves us relevant results. How? Natural language processing (NLP). 

NLP is a form of artificial intelligence technology that aims to make sense of human language. NLP helps computers to understand, interpret, and replicate human language characteristics. 

In an age ruled by technology, it’s important for computers to be able to understand us. NLP is an attempt to take our shoddy language inputs and turn them into something useful computers can comprehend. 

Find the best Natural Language Processing (NLP) Software on the market. Explore  Now, Free →

This task wouldn’t be difficult if we all spoke like robots, but we don’t. We use slang, have different dialects, misuse grammar, and leave out punctuation. From a computer’s standpoint, it’s like being a beginner in a new language and venturing into the city center only to encounter phrases you’d never heard before. You wouldn’t know how to respond appropriately.

Since machine learning algorithms have been introduced, computers can now process huge amounts of information in order to identify patterns and better understand human languages. This has numerous use cases for tech, many of which you see and use on a daily basis:

How Google uses NLP

Fifteen percent of Google queries are brand new. In other words, the search engine has never before seen the combination of words that make up 15% of all searches. 

This isn’t because we are searching for topics Google has never seen before. It’s due to the varying ways we combine words and ask questions, both in writing and voice search. Google and other search engines are able to answer the questions we aren’t able to form correctly.

“It’s our job to figure out what you’re searching for and surface helpful information from the web, no matter how you spell or combine the words in your query.” 

Pandu Nayak of Google

Google is constantly trying to get better at understanding queries in order to serve relevant search results, and natural language processing plays a big role in that effort. 

Google’s BERT

Unless you live on a secluded island, you probably heard the noise about BERT in late October. I’d be remiss not to touch on it. BERT (Bidirectional Encoder Representations from Transformers) is an NLP model that Google introduced in 2018 and began rolling out in October 2019. BERT has the ability to consider the full context of a word based on the words that come before or after. 

Put simply, BERT helps search engines better understand intent, most notably for longer searches that contain multiple prepositions. 

For example, Google called out the query “2019 brazil traveler to usa need a visa” in a recent post. The word “to” is crucial here. Before BERT, Google would have returned results about US citizens traveling to Brazil. Post-BERT, Google can recognize that nuance and return a more relevant and helpful result.

before and after BERTSource

Google’s natural language API

To non-developers and those unfamiliar with AI, NLP can seem like a foreign and distant concept. Lucky for us, Google gives us some really helpful insight through a Cloud API product that offers a set of advanced NLP models. This API is available through Google Cloud and is used by a number of companies for a variety of applications.

Google offers an abbreviated free demo of its API.

Here’s how to check it out:

  1. Copy and paste the text of a piece of content.
  2. Head to
  3. Paste it into the text box beneath “Try the Demo.”
  4. Check out the analysis.

try the google API

What does all of this have to do with SEO? Let’s start by looking at the four key aspects of Google’s Natural Language API: entity, sentiment, and syntax analysis, and categories.


Put really simply, an entity is a thing. An entity can be a place, person, organization, idea, or concept. Entities address the relationships between things and help search engines like Google understand their relatedness.

For example, the following are entities: 

  • Prime Minister
  • Canada
  • Justin Trudeau

When you search for “prime minister of canada,” you get the following result:

justin trudeau querey example

Search engines look for co-occurrence in order to establish the relationships between entities. The three entities listed above exist together frequently enough on the web that search engines are able to confidently serve you a single result to the query. 

In addition to co-occurrence, Google looks at other factors like the notability and authority of the contributor to gauge the importance of relationships between entities.

Entities and SEO

Of these four NLP models, entities have the largest implications on SEO. Google’s Natural Language API measures the salience of entities found in content. Salience is a score of how important the entity is in the context of the whole text. The higher the score, the more salient the entity is. 


Unfortunately, there’s no sure-fire way to optimize content for entity salience, nor are we certain entity salience means higher rankings. However, entity salience can be a guide for content optimization, particularly around satisfying user intent. 

Pick the topic you’d like to rank for, copy and paste the top five competitor results into the Natural Language API, and check out their entity salience scores. 

This will give you a clear picture of what entities Google deems important in regard to the topic. Taking a deeper dive into the Wikipedia articles (when linked), will help you understand what topics and attributes should be covered in your piece. 

Note that content isn’t the only implication for entities in search. Entities also mean a great deal for links, as they help search engines identify relevant and irrelevant connections. For example, a company looking to rank for SEO in Atlanta needs quality links from pages about SEO and pages about Atlanta in order to establish relatedness and topical authority. Because of entities,…


No Comments

Post A Comment