What Is Natural Language Processing (NLP)? | The Motley Fool

Founded in 1993, The Motley Fool is a financial services company dedicated to making the world smarter, happier, and richer. The Motley Fool reaches millions of people every month through our premium investing solutions, free guidance and market analysis on Fool.com, top-rated podcasts, and non-profit The Motley Fool Foundation.

Founded in 1993, The Motley Fool is a financial services company dedicated to making the world smarter, happier, and richer. The Motley Fool reaches millions of people every month through our premium investing solutions, free guidance and market analysis on Fool.com, top-rated podcasts, and non-profit The Motley Fool Foundation.

Natural language processing (NLP) is a fast-growing type of artificial intelligence (AI). You’ve probably benefitted from NLP if you’ve asked your smartphone for directions to a restaurant or run a spell-check on a word processing program. Read on to learn more about NLP, its history and development, and how it’s being used.

NLP is an increasingly common branch of AI, found in everything from smartphones to home kitchens, and involves the ability of computers to understand spoken language and text. Although most uses are fairly pedestrian — Alexa, what is AI? — NLP is becoming more sophisticated.

For example, tools like Generative Pre-trained Transformer 3 (GPT-3), developed by OpenAI, use a neural network machine learning model that can not only code but also write articles and answer questions, frequently in a manner virtually indistinguishable from a human response.

We generally think of AI and its branches, like NLP, as relatively recent phenomena. But it actually dates back to 1950, when famed mathematician Alan Turing developed criteria for determining whether a computer was capable of AI. One criterion for the test involved deciding whether the computer could interpret and generate natural language.

For the next 50 years, linguists developed NLP using painstaking trial-and-error rules. In the 1990s, however, computers became much faster and more capable of doing calculations in seconds, even those that previously took hours or days.

The result was a shift to statistical methods to develop NLP capabilities. The current approach to NLP uses both linguistic and statistical methods to interpret and respond to instructions.

NLP involves two basic steps: data preprocessing and algorithm development. Data preprocessing generally uses at least one of four steps to allow the machine to work with text data:

Once data preprocessing has been completed, an algorithm takes over. Two main types are used in NLP:

Tools like Apple’s (AAPL 0.35%) virtual assistant, Siri, and Amazon’s (AMZN -0.78%) cloud-based voice service, Alexa, have made NLP commonplace. But a number of fears specific to NLP worry many experts.

Part of that can be attributed to the vast number of tasks humans currently do that computers could do in the coming years. For example, tech giant IBM (IBM -0.2%) has cited a handful of potential uses of NLP for real-world applications that may have escaped many people’s attention:

Spam detection: NLP can use a number of rules to clear out emails and texts that (hopefully) are spam, weeding out messages that include poor spelling, bad grammar, inappropriate urgency, and other common features of nuisance messages.

Machine translation: Translating words from one language into another isn’t always a straightforward proposition. IBM notes, for example, that the English phrase, “The spirit is willing, but the flesh is weak,” was originally translated into Russian as “The vodka is good, but the meat is rotten.” The Google (GOOG 0.44%) (GOOGL 0.42%) Translate service remains the standard.

Virtual agents and chatbots: As better algorithms are developed, chatbots are becoming slightly less aggravating than automated telephone customer service responses. Likewise, virtual agents like Siri and Alexa continue to improve, recognizing context and providing better answers.

Social media sentiment: NLP is not only becoming a defense against disinformation and hate speech on social media but can also tell companies how their customers truly feel about their products, promotions, and events. Sentiment analysis can help companies design better products and advertising.

Text summarization: This uses NLP to synthesize and summarize large volumes of text. Some applications can even use rudimentary reasoning to generate context to the summaries, as well as conclusions.

AI will almost certainly see rapid growth over the coming years as it continues to disrupt customer service.

Learn how artificial intelligence is used in investing and how it can help you be a better investor.

Machine learning is booming. We look at seven companies that are taking advantage of developments in the field.

An in-depth look at the top artificial intelligence (AI) ETFs in the U.S. stock market this year.

Already, innovators are making progress on NLP-based tools that could eventually take the place of people. Consider the underappreciated chief of staff or the administrative assistant who schedules and takes notes during meetings and generally keeps the organizational trains running on time.

The start-up Xembly is using an automated, NLP-powered platform to handle many office jobs that often get lost in the shuffle. Its conversational AI agent, Xena, can listen to meetings, take notes, schedule meetings through Slack or email, remind people of action items, and even understand who is talking to whom when there is more than one speaker.

Although Xena may never be able to clear out the refrigerator in your office building or ensure everyone actually signs a birthday card, the agent is likely a harbinger of bigger things to come in the NLP world. Smart companies are already considering how to utilize NLP and other AI tools to make their workplaces more efficient and profitable. And smart investors will pay attention to these tools and how they’re used as they continue to develop.

Investment news and high-quality insights delivered straight to your inbox

Invest better with The Motley Fool. Get stock recommendations, portfolio guidance, and more from The Motley Fool’s premium services.