The last column (MISC) in CoNLL-U may contain SpaceAfter=No.
SpaceAfter is a standardized language-independent attribute (unlike other features stored in MISC).
We should consider providing a special attribute (setter and getter) for it:
$node->set_space_after(1) if !$node->space_after;
It is shorter (more user friendly, I hope) than accessing it through $node->misc.
Options:
- extract SpaceAfter from MISC when loading CoNLL-U files and save it there in Write::CoNLLU.
- keep
$node->space_after as an alias/shortcut for $node->misc->{SpaceAfter}, so users are not surprised that it is missing there.
However, $node->misc->{SpaceAfter} has possible values Yes and No (with Yes being the default - it probably should be never stored there explicitly), while $node->space_after should have the usual Perl boolean values (undef and 1).
The last column (MISC) in CoNLL-U may contain
SpaceAfter=No.SpaceAfter is a standardized language-independent attribute (unlike other features stored in MISC).
We should consider providing a special attribute (setter and getter) for it:
$node->set_space_after(1) if !$node->space_after;It is shorter (more user friendly, I hope) than accessing it through
$node->misc.Options:
$node->space_afteras an alias/shortcut for$node->misc->{SpaceAfter}, so users are not surprised that it is missing there.However,
$node->misc->{SpaceAfter}has possible valuesYesandNo(withYesbeing the default - it probably should be never stored there explicitly), while$node->space_aftershould have the usual Perl boolean values (undef and 1).