NAME

Lingua::famibeib::Sentence - module to interact with the famibeib sentences

VERSION

version v0.01

SYNOPSIS

use Lingua::famibeib::Sentence;

This module implements a fragment that is a peroper well formed sentence. This is ensured at construction time.

This module inherits from Lingua::famibeib::Fragment.

type

my Lingua::famibeib::Word $type = $sentence->type;

(since v0.01)

Returns the type of the sentence as a Lingua::famibeib::Word.

is_statement

my $bool = $sentence->is_statement;

(since v0.01)

Returns whether the sentence is a statment (tubaik).

is_question

my $bool = $sentence->is_question;

(since v0.01)

Returns whether the sentence is a question (tubeik).

is_command

my $bool = $sentence->is_command;

(since v0.01)

Returns whether the sentence is a command (tubiik).

is_exclamation

my $bool = $sentence->is_exclamation;

(since v0.01)

Returns whether the sentence is an exclamation (tuboik).

main_verb

my Lingua::famibeib::Word $main_verb = $sentence->main_verb;

(experimental since v0.01)

Returns the main verb of the sentence as a Lingua::famibeib::Word.

Note: This is still experimental and might return a verb that is not the main verb as the main verb. Future versions will most likely improve this.

AUTHOR

Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2025 by Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)