Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions release/jeanm/jeanm.lij.conseggio/HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ligurian lexical model change history

## 0.2 (2026-08-25)

- Initial public release.

## 0.1.0 (2026-08-08)

- Private testing release.
21 changes: 21 additions & 0 deletions release/jeanm/jeanm.lij.conseggio/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright © 2026 Jean Maillard

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions release/jeanm/jeanm.lij.conseggio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ligurian lexical model

© 2026 Jean Maillard
Released under the [MIT License](LICENSE.md)

This model provides predictive text and autocorrection for Ligurian (BCP 47: `lij`). Word counts were derived from a corpus of Ligurian text created by the [Council for Ligurian Linguistic Heritage](https://conseggio-ligure.org/en/). The corpus comprises web text, transcriptions of dialogue and other spoken content, literary content, and news.
11 changes: 11 additions & 0 deletions release/jeanm/jeanm.lij.conseggio/jeanm.lij.conseggio.kpj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<KeymanDeveloperProject>
<Options>
<Version>2.0</Version>
<SkipMetadataFiles>True</SkipMetadataFiles>
<ProjectType>lexicalmodel</ProjectType>
<CompilerWarningsAsErrors>True</CompilerWarningsAsErrors>
<CheckFilenameConventions>True</CheckFilenameConventions>
</Options>
</KeymanDeveloperProject>

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<Package>
<System>
<KeymanDeveloperVersion>18.0.245.0</KeymanDeveloperVersion>
<FileVersion>12.0</FileVersion>
</System>
<Options>
<ExecuteProgram></ExecuteProgram>
<ReadMeFile>readme.htm</ReadMeFile>
<LicenseFile>..\LICENSE.md</LicenseFile>
</Options>
<Info>
<Name URL="">Ligurian lexical model</Name>
<Copyright URL="">© 2026 Jean Maillard</Copyright>
<Author URL="">Jean Maillard</Author>
<Version URL="">0.2</Version>
<Description URL="">Predictive text and autocorrection for Ligurian.</Description>
</Info>
<Files>
<File>
<Name>..\build\jeanm.lij.conseggio.model.js</Name>
</File>
<File>
<Name>welcome.htm</Name>
</File>
<File>
<Name>readme.htm</Name>
</File>
<File>
<Name>..\LICENSE.md</Name>
</File>
</Files>
<Keyboards/>
<LexicalModels>
<LexicalModel>
<Name>Ligurian lexical model</Name>
<ID>jeanm.lij.conseggio</ID>
<Languages>
<Language ID="lij">Ligurian</Language>
</Languages>
</LexicalModel>
</LexicalModels>
<RelatedPackages/>
</Package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
function ligurianSearchTermToKey(
term: string,
applyCasing?: (form: string, text: string) => string,
): string {
const lowercased = Array.from(term)
.map((character) => applyCasing ? applyCasing('lower', character) : character.toLowerCase())
.join('');

return lowercased
.replace(/nn-/g, 'ñ')
.normalize('NFKD')
.replace(/n\u0303/g, 'ñ')
.replace(/[\u0300-\u036f]/g, '')
.replace(/[\u02bc\u2018\u2019\u201b\uff07]/g, "'")
.replace(/[“”]/g, '"');
}

const source: LexicalModelSource = {
format: 'trie-1.0',
languageUsesCasing: true,
searchTermToKey: ligurianSearchTermToKey,
wordBreaker: {
use: 'default',
joinWordsAt: ["'", '-'],
},
sources: ['wordlist.tsv'],
};

export default source;
14 changes: 14 additions & 0 deletions release/jeanm/jeanm.lij.conseggio/source/readme.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ligurian lexical model</title>
</head>
<body>
<h1>Ligurian lexical model</h1>
<p>Predictive text and autocorrection for Ligurian.</p>
<p>The word list is derived from a corpus created by the <a href="https://conseggio-ligure.org/en/">Council for Ligurian Linguistic Heritage</a>. It includes web text, transcriptions of dialogue and other spoken content, literary content, and news.</p>
<p>© 2026 Jean Maillard</p>
</body>
</html>
13 changes: 13 additions & 0 deletions release/jeanm/jeanm.lij.conseggio/source/welcome.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Start using the Ligurian lexical model</title>
</head>
<body>
<h1>Ligurian lexical model</h1>
<p>This package adds Ligurian predictive text and autocorrection to Keyman on mobile devices.</p>
<p>© 2026 Jean Maillard</p>
</body>
</html>
Loading