Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.138.537 Times

Lingua::Conjunction 2.00

  Date Added: January 27, 2010  |  Visits: 600

Lingua::Conjunction

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)

Lingua::Conjunction is Perl module convert Perl lists into linguistic conjunctions. SYNOPSIS use Lingua::Conjunction; # emits "Jack" $name_list = conjunction(Jack); # emits "Jack and Jill" $name_list = conjunction(Jack, Jill); # emits "Jack, Jill, and Spot" $name_list = conjunction(Jack, Jill, Spot); # emits "Jack, a boy; Jill, a girl; and Spot, a dog" $name_list = conjunction(Jack, a boy, Jill, a girl, Spot, a dog); # emits "Jacques, un garcon; Jeanne, une fille; et Spot, un chien" Lingua::Conjunction->lang(fr); $name_list = conjunction( Jacques, un garcon, Jeanne, une fille, Spot, un chien ); Lingua::Conjunction exports a single subroutine, conjunction, that converts a list into a properly punctuated text string. You can cause conjunction to use the connectives of other languages, by calling the appropriate subroutine: Lingua::Conjunction->lang(en); # use and (default) Lingua::Conjunction->lang(es); # use y Supported languages in this version are English, Spanish, French, Italian, German, Portuguese, Norwegian, Danish, Dutch, Afrikaans, Swahili, and Latin. (Klingon is intentionally not supported.) You can also set connectives individually: Lingua::Conjunction->separator("..."); Lingua::Conjunction->separator_phrase("--"); Lingua::Conjunction->connector_type("or"); # emits "Jack... Jill... or Spot" $name_list = conjunction(Jack, Jill, Spot); The separator_phrase is used whenever the separator already appears in an item of the list. For example: # emits "Doe, a deer; Ray; and Me" $name_list = conjunction(Doe, a deer, Ray, Me); You may use the penultimate routine to diable the separator after the next to last item. Generally this is bad English practice but the option is there if you want it: # emits "Jack, Jill and Spot" Lingua::Conjunction->penultimate(0); $name_list = conjunction(Jack, Jill, Spot); I have been told that the penultimate comma is not standard for some languages, such as Norwegian. Hence the defaults set in the %languages..

Requirements: No special requirements
Platforms: Linux
Keyword: Conjunction Jack Jill Libraries Linguaconjunction List Name Perl Module Programming Spot
Users rating: 0/10

License: Freeware Size: 4.1 KB
LINGUA::CONJUNCTION RELATED
Libraries  -  List::Util 1.19
List::Util Perl module contains a selection of general-utility list subroutines. SYNOPSIS use List::Util qw(first max maxstr min minstr reduce shuffle sum); List::Util contains a selection of subroutines that people have expressed would be...
44.03 KB  
Libraries  -  List::Intersperse 1.00
List::Intersperse Perl module can intersperse / unsort / disperse a list. SYNOPSIS use List::Intersperse qw/intersperseq/; @ispersed = intersperseq {substr($_[0],0,1)} qw/A1 A2 B1 B2 C1 C2/; @ispersed = List::Intersperse::intersperse qw/A...
2.05 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Mac::Apps::Seasonality::Constants 0.0.4
Mac::Apps::Seasonality::Constants is a Perl module for static definitions of aspects of Seasonality. SYNOPSIS use Mac::Apps::Seasonality::Constants qw{ $SEASONALITY_NAME $SEASONALITY_CREATOR $SEASONALITY_HISTORY_DATABASE_PATH }; use...
8.19 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  Gtk2::Ex::MindMapView::HotSpot::Grip::Round 0.000001
Gtk2::Ex::MindMapView::HotSpot::Grip::Round is a Perl module to manage a round grip type "hot spot" on a view item. SYNOPSIS use Gtk2::Ex::MindMapView::HotSpot::Grip::Round; The Gtk2::Ex::MindMapView::HotSpot::Grip::Round is a round grip...
50.18 KB  
Libraries  -  Gtk2::Ex::MindMapView::HotSpot::Grip::Lentil 0.000001
Gtk2::Ex::MindMapView::HotSpot::Grip::Lentil is a Perl module to manage a lentil shaped grip "hot spot" on a view item. SYNOPSIS use Gtk2::Ex::MindMapView::HotSpot::Grip::Lentil; A LentilGrip hotspot may be used to resize a...
50.18 KB  
Libraries  -  Gtk2::Ex::MindMapView::ItemHotSpot 0.000001
Gtk2::Ex::MindMapView::ItemHotSpot is a Perl module to manage a "hot spot" on a view item. SYNOPSIS use Gtk2::Ex::MindMapView::ItemHotSpot; Four Gtk2::Ex::MindMapView::ItemHotSpots are created for each Gtk2::Ex::MindMapView::Item. The...
50.18 KB  
Libraries  -  Gtk2::Ex::MindMapView::HotSpot::Grip::EllipseRound 0.000001
Gtk2::Ex::MindMapView::HotSpot::Grip::EllipseRound is a Perl module to manage a round grip type "hot spot" on a ellipse item. This grip differs from the standard grip with respect to where it is placed on the Gtk2::Ex::MindMapView::Item....
50.18 KB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB