Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/recognizers-text-number

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/recognizers-text-number

recognizers-text-number provides robust recognition and resolution of numbers expressed in multiple languages.

  • 1.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
110K
decreased by-18.35%
Maintainers
2
Weekly downloads
 
Created

What is @microsoft/recognizers-text-number?

@microsoft/recognizers-text-number is a part of the Microsoft Recognizers Text suite, which provides robust text recognition capabilities. This specific package focuses on recognizing and parsing numbers, ordinal numbers, percentages, and more from text in multiple languages.

What are @microsoft/recognizers-text-number's main functionalities?

Number Recognition

This feature allows you to recognize and extract numbers from a given text. In the example, it identifies 'two' and 'three' as numbers.

const { recognizeNumber } = require('@microsoft/recognizers-text-number');
const input = 'I have two apples and three oranges.';
const results = recognizeNumber(input, 'en-us');
console.log(results);

Ordinal Number Recognition

This feature helps in recognizing ordinal numbers from text. In the example, it identifies 'first' as an ordinal number.

const { recognizeOrdinal } = require('@microsoft/recognizers-text-number');
const input = 'This is the first time I am using this package.';
const results = recognizeOrdinal(input, 'en-us');
console.log(results);

Percentage Recognition

This feature allows you to recognize and extract percentage values from text. In the example, it identifies '20%' as a percentage.

const { recognizePercentage } = require('@microsoft/recognizers-text-number');
const input = 'The discount is 20% on all items.';
const results = recognizePercentage(input, 'en-us');
console.log(results);

Other packages similar to @microsoft/recognizers-text-number

Keywords

FAQs

Package last updated on 27 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc