Lingua::EN::FindNumber(3pm)

Lingua::EN::FindNumber3pm

Locate (written) numbers in english text

Usage

  use Lingua::EN::FindNumber;
  my $text = "Fourscore and seven years ago, our four fathers...";
  numify($text); # "87 years ago, our 4 fathers..."
  @numbers = extract_numbers($text); # "Fourscore and seven", "four"
  while ($text =~ /$number_re/g) { # Build your own iterator

Overview

This module provides a regular expression for finding numbers in English text. It also provides functions for extracting and manipulating such numbers.

Exported methods

extract_numbers / numify / $number_re

  numify($text); # "87 years ago, our 4 fathers..."
  @numbers = extract_numbers($text); # "Fourscore and seven", "four"
  while ($text =~ /$number_re/g) { # Build your own iterator

Repository

<https://github.com/neilb/Lingua-EN-FindNumber>

BUGS and QUERIES

Please direct all correspondence regarding this module to:
[email protected]

Releases

6 releases since Debian 8 (Jessie); the text changed 2 times.

  1. 8
  2. 9–11
  3. 12–13

Author

This module was originally written by Simon Cozens. It was then maintained from 2004 to 2005 by Tony Bowden. Since 2014 it has been maintained by Neil Bowers.

From liblingua-en-findnumber-perl 1.32-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.