NAME
Lingua::Klingon::Segment - Segment Klingon words into syllables and letters
VERSION
This document refers to version 1.01 of Lingua::Klingon::Segment, released on 2004-05-09.
SYNOPSIS
use Lingua::Klingon::Segment;
my @syllables = Lingua::Klingon::Segment::syllabify('monghom');
# @syllables = qw(mon ghom)
my @letters = Lingua::Klingon::Segment::spell('monghom');
# @letters = qw(m o n gh o m)
or
use Lingua::Klingon::Segment ':all';
my @syllables = syllabify('mongHom');
# @syllables = qw(mong Hom)
my @letters = spell('mongHom');
# @letters = qw(m o ng H o m)
or
use Lingua::Klingon::Segment qw( syllabify );
my @syllables = syllabify('vavoy');
# @syllables = qw(va voy)
DESCRIPTION
Overview
Lingua::Klingon::Segment is a module which allows you to decompose Klingon words into syllables and letters.
Exports
Lingua::Klingon::Segment exports no functions by default, in order to avoid namespace pollution. However, all functions listed here can be imported explicitly by naming them, or they can be imported all together by using the tag ':all'.
syllabify
This subroutine splits a given word into syllables. It returns the list of syllables that make up that word.
spell
This subroutine splits a given word into letters. It returns the list of letters that make up that word (counting all Klingon letters as one, including 'ch', 'gh', 'ng', and 'tlh').
LIMITATIONS
Lingua::Klingon::Segment has only been tested on single words. If you pass it multi-word phrases, it will only extract Klingon letters or syllables.
BUGS
None currently known. If you find any, please email me.
SEE ALSO
FEEDBACK
If you use this module, I'd appreciate it if you drop me a line at the email address in "AUTHOR", just so that I have an idea of how many people use this module at all. Also, if you have any comments, feel free to email me.
AUTHOR
Philip Newton, <pne@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2003, 2004 by Philip Newton. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Philip Newton nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.