| 1 | # Copyright (c) 2026 Philipp Schafft | ||
| 2 | |||
| 3 | # licensed under Artistic License 2.0 (see LICENSE file) | ||
| 4 | |||
| 5 | # ABSTRACT: module to provide information on languages and language specific properties | ||
| 6 | |||
| 7 | |||
| 8 | package Lingua::Generic::Information; | ||
| 9 | |||
| 10 | use v5.20; | ||
| 11 | use strict; | ||
| 12 | use warnings; | ||
| 13 | |||
| 14 | use Carp; | ||
| 15 | use Data::Identifier v0.36; | ||
| 16 | use Lingua::Generic::Information::Language; | ||
| 17 | |||
| 18 | our $VERSION = v0.01; | ||
| 19 | |||
| 20 | |||
| 21 | sub lookup_language { | ||
| 22 | my ($pkg, $idtype, $id, @opts) = @_; | ||
| 23 | |||
| 24 | croak 'Stray options passed' if scalar @opts; | ||
| 25 | |||
| 26 | return Lingua::Generic::Information::Language->_find($idtype, $id); | ||
| 27 | } | ||
| 28 | |||
| 29 | |||
| 30 | # ---- Private helpers ---- | ||
| 31 | |||
| 32 | 1; | ||
| 33 | |||
| 34 | __END__ |