NAME
Lingua::NOR::Num2Word - convert whole number to norwegian text. Output text is in utf-8 encoding.
VERSION
version 0.2603270
SYNOPSIS
use Lingua::NOR::Num2Word;
my $no_num2word = Lingua::NOR::Num2Word->new();
my $text = $no_num2word->num2no_cardinal( 1000000 );
print $text || "Sorry, can't convert this number into norwegian.";
DESCRIPTION
Number 2 word conversion in NOR.
This module is based on and inspired by Roman Vasicek module Lingua::CS::Num2Word. Lingua::NOR::Num2Word is a module for converting whole numbers into their norwegian textual representation. Converts numbers from 0 up to 999 999 999.
METHODS
The following methods are provided by the Lingua::NOR::Num2Word class.
- new
-
Create a singleton object.
my $no_num2word = Lingua::NOR::Num2Word->new(); - num2no_cardinal
-
Converts a whole number to norwegian language.
my $text = $no_num2word->num2no_cardinal( 1000000 ); - num2nor_ordinal
-
Convert number to its Norwegian ordinal text representation. Exported function (not a method). Handles irregular forms (første, andre, tredje, etc.) and applies correct suffixes for regular forms.
use Lingua::NOR::Num2Word qw(num2nor_ordinal); my $ord = num2nor_ordinal(3); # "tredje"
AUTHORS
initial coding:
Kjetil Fikkan E<lt>kjetil@fikkan.orgE<gt>
specification, maintenance:
Richard C. Jelinek E<lt>rj@petamem.comE<gt>
coding (until 2005):
Roman Vasicek E<lt>info@petamem.comE<gt>
maintenance, coding (2025-present):
PetaMem AI Coding Agents
COPYRIGHT
Copyright (c) 2004 Kjetil Fikkan
Copyright (c) PetaMem, s.r.o. 2010-present
This module is free software. It may be used, redistributed
and/or modified under the same terms as Perl itself.
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as the Artistic License 2.0 or the BSD 2-Clause License. See the LICENSE file in the distribution for details.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 319:
Non-ASCII character seen before =encoding in '(første,'. Assuming UTF-8