Main > Programming > Libraries >

Lingua::Phonology::Segment 0.32

Lingua::Phonology::Segment 0.32

Sponsored Links

Lingua::Phonology::Segment 0.32 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.098 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1239
Date added: 2006-06-02
Publisher: Jesse S. Bangs

Lingua::Phonology::Segment 0.32 description

Lingua::Phonology::Segment is a module to represent a segment as a bundle of feature values.

SYNOPSIS

use Lingua::Phonology;
$phono = new Lingua::Phonology;

# Define a feature set
$features = $phono->features;
$features->loadfile;

# Make a segment
$segment = $phono->segment;

# Set some values
$segment->labial(1);
$segment->continuant(0);
$segment->voice(1);
# Segment is now voiced labial stop, i.e. [b]

# Reset the segment
$segment->clear;

A Lingua::Phonology::Segment object provides a programmatic representation of a linguistic segment. Such a segment is associated with a Lingua::Phonology::Features object that lists the available features and the relationships between them. The segment itself is a list of the values for those features.

This module provides methods for returning and setting these feature values. A segment may also be associated with a Lingua::Phonology::Symbols object, which allows the segment to return the symbol that it best matches.

OVERLOADING

As of Lingua::Phonology v0.32 (Lingua::Phonology::Segment v0.4), string conversion of segments is overloaded. When you use a Lingua::Phonology::Segment in string context, the spell() method is automatically called, and the representation of the segment from the current symbolset is returned. String comparison operators (cmp eq ne lt le gt ge) are also overloaded. Therefore, the following work correctly, assuming that you have a Lingua::Phonology object correctly set up in $phono.

my ($b, $k) = $phono->symbols->segment(b, k);

print "Segments: $b, $kn"; # Prints "Segments: b, k";
print "$b is greater than $kn" if $b gt $k; # Wont print
print "$b is less than $kn" if $b lt $k; # Prints b is less than k;
print "$b is equal to $kn" if $b eq $k; # Wont print

my $b2 = $b->duplicate;
print "$b is equal to $b2n" if $b eq $b2 # Prints b is equal to b;
Note that stringification is not overloaded if the symbolset is not properly set. However, it turns on as soon as a symbolset is available:
my $b = Lingua::Phonology::Segment->new($features);
$b->voice(1);
$b->labial(1);

print "$bn"; # Prints Lingua::Phonology::Segment=HASH(0x88af598)
# or something similar, because there is no symbolset
# defined for spelling the segment.

$b->symbolset($symbols);
print "$bn"; # Prints b
Number conversion is not overloaded.

Lingua::Phonology::Segment 0.32 Screenshot

Advertisements

Lingua::Phonology::Segment 0.32 Keywords

Bookmark Lingua::Phonology::Segment 0.32

Hyperlink code:
Link for forum:

Lingua::Phonology::Segment 0.32 Copyright

WareSeeker periodically updates pricing and software information of Lingua::Phonology::Segment 0.32 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Lingua::Phonology::Segment 0.32 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Lingua::Phonology::Symbols is a Perl module for associating symbols with segment prototypes. Free Download
Lingua::Phonology::Rules is a Perl module for defining and applying phonological rules. Free Download
Lingua::Phonology::Features is a module to handle a set of hierarchical features. Free Download
Lingua::Phonology::FileFormatPOD is a Perl module that contains documentation for the xml file format. Free Download
Geo::Google::Segment is an annotated segment of a path. Free Download
Lingua::RU::Charset is a Perl extension for detecting and converting various russian character sets. Free Download
Quantum::Entanglement package contains QM entanglement of variables in perl. Free Download
GoldSeeker provides a small formatted data extraction application. Free Download