Kensaku.Core
0.1.0-preview.1
This is a prerelease version of Kensaku.Core.
dotnet add package Kensaku.Core --version 0.1.0-preview.1
NuGet\Install-Package Kensaku.Core -Version 0.1.0-preview.1
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="Kensaku.Core" Version="0.1.0-preview.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kensaku.Core" Version="0.1.0-preview.1" />
<PackageReference Include="Kensaku.Core" />
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 Kensaku.Core --version 0.1.0-preview.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Kensaku.Core, 0.1.0-preview.1"
#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 Kensaku.Core@0.1.0-preview.1
#: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=Kensaku.Core&version=0.1.0-preview.1&prerelease
#tool nuget:?package=Kensaku.Core&version=0.1.0-preview.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Kensaku.Core
Query interface for the Kensaku Japanese dictionary database. Provides high-level APIs for searching kanji, words, and radicals with strongly-typed query builders and result types. This project is one layer of the broader Kensaku stack and focuses on querying a pre-built SQLite database containing JMdict, Kanjidic2, and related data.
Features
- Kanji Search: Query kanji by stroke count, radicals, readings, meanings, and various character codes (SKIP, Four Corner, etc.)
- Word Search: Search Japanese dictionary entries by reading or meaning
- Radical Search: Find radicals by number, name, meaning, or stroke count
Usage
This library requires a pre-built Kensaku database file. See the main Kensaku repository to download or create one.
open Kensaku.Core.Radicals
open Kensaku.Core.Kanji
open Kensaku.Core.Words
task {
// Open a connection to the database
use ctx = new KensakuConnection("Data Source=kensaku.db")
// Search for radicals
let radicalQuery = {
RadicalNumber = None
RadicalName = None
RadicalMeaning = Some "water"
MinStrokeCount = None
MaxStrokeCount = None
}
let! radicals = getRadicalsAsync radicalQuery ctx
for r in radicals do
printfn "%A" r
// Search for kanji
let kanjiQuery = {
MinStrokeCount = Some 5
MaxStrokeCount = Some 10
IncludeStrokeMiscounts = false
SearchRadicals = []
SearchRadicalMeanings = []
CharacterCode = None
CharacterReading = Some "あい"
CharacterMeaning = None
Nanori = None
CommonOnly = false
Pattern = None
KeyRadical = None
}
let! kanji = getKanjiAsync kanjiQuery ctx
for k in kanji do
printfn "%A" k
// Search for words
let wordQuery: GetWordsQuery = {
Reading = Some "こんにちは"
Meaning = None
}
let! words = getWordsAsync wordQuery ctx
for w in words do
printfn "%A" w
} |> Async.AwaitTask |> Async.RunSynchronously
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Dapper (>= 2.1.66)
- FSharp.Core (>= 9.0.101)
- Kensaku.Schema (>= 0.1.0-preview.1)
- Microsoft.Data.Sqlite (>= 9.0.2)
-
net9.0
- Dapper (>= 2.1.66)
- FSharp.Core (>= 9.0.101)
- Kensaku.Schema (>= 0.1.0-preview.1)
- Microsoft.Data.Sqlite (>= 9.0.2)
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 |
|---|---|---|
| 0.1.0-preview.1 | 127 | 10/16/2025 |