{"id":15019060,"url":"https://github.com/nigelhorne/lingua-conjunction","last_synced_at":"2025-10-22T08:33:14.934Z","repository":{"id":56830942,"uuid":"327076074","full_name":"nigelhorne/Lingua-Conjunction","owner":"nigelhorne","description":"Convert lists into simple linguistic conjunctions","archived":false,"fork":true,"pushed_at":"2025-08-20T23:00:04.000Z","size":115,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-03T22:37:07.533Z","etag":null,"topics":["cpan","cpan-module","perl","perl-module","perl5"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Lingua::Conjunction","language":"Perl","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"robrwo/Lingua-Conjunction","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nigelhorne.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}},"created_at":"2021-01-05T17:50:18.000Z","updated_at":"2025-08-20T23:00:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nigelhorne/Lingua-Conjunction","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nigelhorne/Lingua-Conjunction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FLingua-Conjunction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FLingua-Conjunction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FLingua-Conjunction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FLingua-Conjunction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nigelhorne","download_url":"https://codeload.github.com/nigelhorne/Lingua-Conjunction/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigelhorne%2FLingua-Conjunction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280405892,"owners_count":26325293,"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","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpan","cpan-module","perl","perl-module","perl5"],"created_at":"2024-09-24T19:52:52.999Z","updated_at":"2025-10-22T08:33:14.671Z","avatar_url":"https://github.com/nigelhorne.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nLingua::Conjunction - Convert lists into simple linguistic conjunctions\n\n# VERSION\n\nVersion 2.7\n\n# SYNOPSIS\n\nLanguage-specific definitions.\nThese may not be correct, and certainly they are not complete.\nE-mail corrections and additions to `\u003cnjh at bandsman.co.uk\u003e`,\nand an updated version will be released.\n\n# SUBROUTINES/METHODS\n\n## conjunction\n\nLingua::Conjunction exports a single subroutine, `conjunction`, that\nconverts a list into a properly punctuated text string.\n\nYou can cause `conjunction` to use the connectives of other languages, by\ncalling the appropriate subroutine:\n\n    use Lingua::Conjunction;\n\n    Lingua::Conjunction-\u003elang('en');    # use 'and'\n    Lingua::Conjunction-\u003elang('es');    # use 'y'\n    Lingua::Conjunction-\u003elang();        # Tries to determine your language, otherwise falls back to 'en'\n\nSupported languages in this version are\nAfrikaans,\nDanish,\nDutch,\nEnglish,\nFrench,\nGerman,\nIndonesian,\nItalian,\nLatin,\nNorwegian,\nPortuguese,\nSpanish,\nand Swahili.\n\nYou can also set connectives individually:\n\n    Lingua::Conjunction-\u003eseparator(\"...\");\n    Lingua::Conjunction-\u003eseparator_phrase(\"--\");\n    Lingua::Conjunction-\u003econnector_type(\"or\");\n\n    # emits \"Jack... Jill... or Spot\"\n    $name_list = conjunction('Jack', 'Jill', 'Spot');\n\n## separator\n\nSets the separator, usually ',' or ';'.\n\n    Lingua::Conjunction-\u003eseparator(',');\n\nReturns the previous value.\n\n## separator\\_phrase\n\nSets the alternate (phrase) separator.\n\n    Lingua::Conjunction-\u003eseparator_phrase(';');\n\nThe `separator_phrase` is used whenever the separator already appears in\nan item of the list. For example:\n\n    # emits \"Doe, a deer; Ray; and Me\"\n    $name_list = conjunction('Doe, a deer', 'Ray', 'Me');\n\nReturns the previous value;\n\n## penultimate\n\nEnables/disables penultimate separator.\n\nYou may use the `penultimate` routine to disable the separator after the\nnext to last item.\nIn English, The Oxford Comma is a highly debated issue.\n\n    # emits \"Jack, Jill and Spot\"\n    Lingua::Conjunction-\u003epenultimate(0);\n    $name_list = conjunction('Jack', 'Jill', 'Spot');\n\nThe original author was told that the penultimate comma is not standard for some\nlanguages, such as Norwegian.\nHence the defaults set in the `%languages`.\n\n    Lingua::Conjunction-\u003epenultimate(0);\n\nReturns the previous value.\n\n## connector\\_type\n\nUse \"and\" or \"or\", with appropriate translation for the current language\n\n    Lingua::Conjunction-\u003econnector_type('and');\n\n## connector\n\nSets the for the current connector\\_type.\n\n    Lingua::Conjunction-\u003econnector(SCALAR)\n\nReturns the previous value.\n\n## lang\n\nSets the language to use.\nIf no arguments are given,\nit tries its best to guess.\n\n    Lingua::Conjunction-\u003elang('de');    # Changes the language to German\n\n# AUTHORS\n\n- Robert Rothenberg \u003crrwo@cpan.org\u003e\n- Damian Conway \u003cdamian@conway.org\u003e\n\n# MAINTAINER\n\n2021-present\tMaintained by Nigel Horne, `\u003cnjh at bandsman.co.uk\u003e`\n\n# CONTRIBUTORS\n\n- Ade Ishs \u003cadeishs@cpan.org\u003e\n- Mohammad S Anwar \u003cmohammad.anwar@yahoo.com\u003e\n- Nigel Horne `\u003cnjh at bandsman.co.uk\u003e`\n\n# SEE ALSO\n\n`Locale::Language`, `List::ToHumanString`\n\nThe _Perl Cookbook_ in Section 4.2 has a similar subroutine called\n`commify_series`. The differences are that\n1\\. this routine handles multiple languages and\n2\\. being a module, you do not have to add the subroutine to a script every time you need it.\n\n# SOURCE\n\nThe development version is on github at [https://github.com/nigelhorne/Lingua-Conjunction](https://github.com/nigelhorne/Lingua-Conjunction)\nand may be cloned from [git://github.com/nigelhorne/Lingua-Conjunction.git](git://github.com/nigelhorne/Lingua-Conjunction.git)\n\n# SUPPORT\n\nYou can find documentation for this module with the perldoc command.\n\n    perldoc Lingua::Conjunction\n\nYou can also look for information at:\n\n- MetaCPAN\n\n    [https://metacpan.org/release/Lingua-Conjunction](https://metacpan.org/release/Lingua-Conjunction)\n\n- RT: CPAN's request tracker\n\n    [https://rt.cpan.org/NoAuth/Bugs.html?Dist=Lingua-Conjunction](https://rt.cpan.org/NoAuth/Bugs.html?Dist=Lingua-Conjunction)\n\n- CPAN Testers' Matrix\n\n    [http://matrix.cpantesters.org/?dist=Lingua-Conjunction](http://matrix.cpantesters.org/?dist=Lingua-Conjunction)\n\n- CPAN Testers Dependencies\n\n    [http://deps.cpantesters.org/?module=Lingua::Conjunction](http://deps.cpantesters.org/?module=Lingua::Conjunction)\n\n# BUGS AND LIMITATIONS\n\nPlease report any bugs or feature requests on the bugtracker website\n[https://rt.cpan.org/Dist/Display.html?Queue=Lingua-Conjunction](https://rt.cpan.org/Dist/Display.html?Queue=Lingua-Conjunction)\n\nWhen submitting a bug or request, please include a test-file or a\npatch to an existing test-file that illustrates the bug or desired\nfeature.\n\n# LICENSE AND COPYRIGHT\n\nThis software is Copyright (c) 1999-2020 by Robert Rothenberg.\n\nThis is free software, licensed under:\n\nThe Artistic License 2.0 (GPL Compatible)\n\nThe current maintainer is Nigel Horne.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelhorne%2Flingua-conjunction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnigelhorne%2Flingua-conjunction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigelhorne%2Flingua-conjunction/lists"}