Packages

Pure-Gleam implementation of KnuthLiang Hyphenation.

Current section

Files

Jump to
hyphenation src hyphenation@internal@metadata.erl
Raw

src/hyphenation@internal@metadata.erl

-module(hyphenation@internal@metadata).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([metadata/1]).
-export_type([metadata/0]).
-type metadata() :: {metadata, binary(), integer(), integer()}.
-spec metadata(hyphenation@language:language()) -> metadata().
metadata(L) ->
case L of
english_us ->
{metadata, <<"en-us"/utf8>>, 2, 3}
end.