NAME
Lingua::Generic::Interface - Perl module to provide generic, language independent, interfaces to language data
VERSION
version v0.03
SYNOPSIS
use Lingua::Generic::Interface;
METHODS
new_word
my Lingua::Generic::Interface::Word $word = Lingua::Generic::Interface->new_word($language, $string);
# e.g.:
my Lingua::Generic::Interface::Word $word = Lingua::Generic::Interface->new_word(de => 'Haus');
(experimental since v0.03)
Creates a word object using the given language and string.
This should only be used as a fallback in case no specific module for the given language is known/available.
The language can be given as a language tag (e.g. de), or as a anything "new" in Data::Identifier accepts via from, or as undef. The Data::Identifier of the language might or might not be cached and/or registered by this call.
This method may try to load a language support module specific to the given language.
new_modifier
my Lingua::Generic::Interface::Modifier $modifier = Lingua::Generic::Interface->new_modifier($language, $input);
(experimental since v0.03)
This method is highly experimental.
The language is given as per "new_word".
new_fragment
my Lingua::Generic::Interface::Fragment $fragment = Lingua::Generic::Interface->new_fragment($language, $words);
(experimental since v0.03)
This method is highly experimental.
The language is given as per "new_word". If no language is given, it is tried to be computed from the given words.
$words must be an array reference to values of type Lingua::Generic::Interface::Word.
AUTHOR
Philipp Schafft <lion@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2026 by Philipp Schafft <lion@cpan.org>.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)