{"id":20160178,"url":"https://github.com/trizen/lingua-ro-numbers","last_synced_at":"2025-07-03T09:05:52.802Z","repository":{"id":27411589,"uuid":"30888511","full_name":"trizen/Lingua-RO-Numbers","owner":"trizen","description":"Lingua::RO::Numbers - converts numeric values into their Romanian string equivalents and viceversa.","archived":false,"fork":false,"pushed_at":"2023-08-31T15:26:27.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T22:05:51.365Z","etag":null,"topics":["converts-numeric-values","lingua","numbers","perl","perl-module","perl5","perl5-module","romanian"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Lingua::RO::Numbers","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trizen.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-02-16T21:09:27.000Z","updated_at":"2023-07-18T09:07:09.000Z","dependencies_parsed_at":"2025-01-13T13:45:58.569Z","dependency_job_id":"9b264f54-8ee3-4940-9d59-755790404367","html_url":"https://github.com/trizen/Lingua-RO-Numbers","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/trizen/Lingua-RO-Numbers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2FLingua-RO-Numbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2FLingua-RO-Numbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2FLingua-RO-Numbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2FLingua-RO-Numbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trizen","download_url":"https://codeload.github.com/trizen/Lingua-RO-Numbers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trizen%2FLingua-RO-Numbers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263296418,"owners_count":23444489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["converts-numeric-values","lingua","numbers","perl","perl-module","perl5","perl5-module","romanian"],"created_at":"2024-11-14T00:12:40.970Z","updated_at":"2025-07-03T09:05:52.760Z","avatar_url":"https://github.com/trizen.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Lingua::RO::Numbers\n\nConverts numeric values into their Romanian string equivalents and the other way around.\n\n### SYNOPSIS\n\n```perl\nuse 5.010;\nuse Lingua::RO::Numbers qw(number_to_ro ro_to_number);\n\nsay number_to_ro(315);\n  # prints: 'trei sute cincisprezece'\n\nsay ro_to_number('trei sute douazeci si cinci virgula doi');\n  # prints: 325.2\n```\n\n#### OPTIONS\n\nInitializing an object.\n\n```perl\nmy $obj = Lingua::RO::Numbers-\u003enew();\n```\n\nis equivalent with:\n\n```perl\nmy $obj = Lingua::RO::Numbers-\u003enew(\n                  diacritics          =\u003e 1,\n                  invalid_number      =\u003e undef,\n                  negative_sign       =\u003e 'minus',\n                  decimal_point       =\u003e 'virgulă',\n                  thousands_separator =\u003e '',\n                  infinity            =\u003e 'infinit',\n                  not_a_number        =\u003e 'NaN',\n          );\n```\n\n#### `number_to_ro($number)`\n\nConverts a number to its Romanian string representation.\n\n```perl\n# Functional oriented usage\n$string = number_to_ro($number);\n$string = number_to_ro($number, %opts);\n\n# Object oriented usage\nmy $obj = Lingua::RO::Numbers-\u003enew(%opts);\n$string = $obj-\u003enumber_to_ro($number);\n\n# Example:\nprint number_to_ro(98_765, thousands_separator =\u003e q{,});\n  # says: 'nouăzeci și opt de mii, șapte sute șaizeci și cinci'\n```\n\n#### `ro_to_number($text)`\n\nConverts a Romanian text into its numeric value.\n\n```perl\n# Functional oriented usage\n$number = ro_to_number($text);\n$number = ro_to_number($text, %opts);\n\n# Object oriented usage\nmy $obj = Lingua::RO::Numbers-\u003enew(%opts);\n$number = $obj-\u003ero_to_number($text);\n\n# Example:\nprint ro_to_number('patruzeci si doi');  # says: 42\n```\n\n### INSTALLATION\n\nTo install this module, run the following commands:\n\n    perl Build.PL\n    ./Build\n    ./Build test\n    ./Build install\n\n### SUPPORT AND DOCUMENTATION\n\nAfter installing, you can find documentation for this module with the\nperldoc command.\n\n    perldoc Lingua::RO::Numbers\n\n### LICENSE AND COPYRIGHT\n\nCopyright (C) 2013-2018 Daniel \"Trizen\" Șuteu\n\nThis program is free software; you can redistribute it and/or modify it\nunder the terms of the the Artistic License (2.0). You may obtain a\ncopy of the full license at:\n\nhttp://www.perlfoundation.org/artistic_license_2_0\n\nAny use, modification, and distribution of the Standard or Modified\nVersions is governed by this Artistic License. By using, modifying or\ndistributing the Package, you accept this license. Do not use, modify,\nor distribute the Package, if you do not accept this license.\n\nIf your Modified Version has been derived from a Modified Version made\nby someone other than you, you are nevertheless required to ensure that\nyour Modified Version complies with the requirements of this license.\n\nThis license does not grant you the right to use any trademark, service\nmark, tradename, or logo of the Copyright Holder.\n\nThis license includes the non-exclusive, worldwide, free-of-charge\npatent license to make, have made, use, offer to sell, sell, import and\notherwise transfer the Package with respect to any patent claims\nlicensable by the Copyright Holder that are necessarily infringed by the\nPackage. If you institute patent litigation (including a cross-claim or\ncounterclaim) against any party alleging that the Package constitutes\ndirect or contributory patent infringement, then this Artistic License\nto you shall terminate on the date that such litigation is filed.\n\nDisclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER\nAND CONTRIBUTORS \"AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR\nPURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY\nYOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR\nCONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR\nCONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,\nEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrizen%2Flingua-ro-numbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrizen%2Flingua-ro-numbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrizen%2Flingua-ro-numbers/lists"}