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" />
                    
Directory.Packages.props
<PackageReference Include="Kensaku.Core" />
                    
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 Kensaku.Core --version 0.1.0-preview.1
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Kensaku.Core&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Tool

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 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.

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