LeanCorpus.SouthEastAsian 1.0.0

Prefix Reserved
dotnet add package LeanCorpus.SouthEastAsian --version 1.0.0
                    
NuGet\Install-Package LeanCorpus.SouthEastAsian -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LeanCorpus.SouthEastAsian" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LeanCorpus.SouthEastAsian" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="LeanCorpus.SouthEastAsian" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LeanCorpus.SouthEastAsian --version 1.0.0
                    
#r "nuget: LeanCorpus.SouthEastAsian, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LeanCorpus.SouthEastAsian@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LeanCorpus.SouthEastAsian&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=LeanCorpus.SouthEastAsian&version=1.0.0
                    
Install as a Cake Tool

LeanCorpus.SouthEastAsian

Thai, Lao, Burmese and Khmer lexicon data for LeanCorpus and Rowles.Text analysis (th, lo, my, km).

The package contains the ICU 79.1 break-iterator word lists: Thai (26,392 words), Lao (30,550), Burmese (41,175) and Khmer (81,030). It holds data only and references neither library, so it works with whichever one the application uses.

Use

Register the data once, before creating analysers:

using Rowles.LeanCorpus.Analysis.Analysers;
using Rowles.LeanCorpus.SouthEastAsian;

foreach (var code in SouthEastAsianLexiconPack.LanguageCodes)
    AnalyserFactory.UseLexicon(code, () => SouthEastAsianLexiconPack.Open(code), SouthEastAsianLexiconPack.GetIdentity(code));
var analyser = AnalyserFactory.Create("th");

Each language then uses ScriptDictionaryTokeniser, which splits its script into the fewest dictionary words without breaking a grapheme cluster.

Registering a lexicon changes the language's analysis identity, which now ends with the lexicon's identity (SouthEastAsianLexiconPack.GetIdentity). An index written with the previous analysis refuses the change until it is reindexed or the change is accepted with IndexWriterConfig.AcceptAnalysisIdentityChanges.

The data is embedded in the assembly and read in place, without a copy.

Licence

The package code is licensed under Apache-2.0 (LICENCE). The data is Unicode License v3; the Lao list is also BSD-2-Clause and the Burmese list BSD-3-Clause (licences/icu-LICENSE.txt).

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net11.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 0 12/4/2026