lindera breaking changes
lindera 7.0.0 (November 21, 2026) is its newest release with breaking changes, 65 of them. The first: Removed include_bytes_aligned! Every breaking API change we have recorded in lindera on crates.io: 65 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.3.0, released December 2, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
lindera 7.0.0 breaking changes
- Removed
include_bytes_aligned!
The include_bytes_aligned! macro is removed from lindera-dictionary and lindera::dictionary. Use include_bytes! instead. github.com - Removed
LINDERA_DICTIONARIES_PATH
The deprecated LINDERA_DICTIONARIES_PATH alias is gone in 7.0.0. Code and scripts that set it must use the replacement variable instead. github.com - Removed
lindera_dictionary.unknown_dictionary.UnkWord
UnknownDictionary::gen_unk_words, compatible_unk_index, UnkWord and WordIdx are removed; model.dat files must be retrained. github.com - Removed
Metadata.normalize_details
The normalize_details setting and its property, option and dictionary key are removed from the API and metadata.json files. github.com - Removed
token_end
The token_end function is removed. Use the end value returned by the backtrace functions instead. github.com - Removed
TrainerConfig.surface_features
Use features() instead, and build the same surface-to-feature map from it if needed. github.com - Renamed
FetchParams.md5_hash
Dictionary build scripts that set md5_hash must pin a SHA-256 digest in sha256 instead. github.com - Renamed
LINDERA_CONFIG_PATH
LINDERA_CONFIG_PATH is renamed to LINDERA_CONFIG_FILE. Update any environment settings that use the old name. github.com - Renamed
LINDERA_WORKDIR
LINDERA_WORKDIR is renamed to LINDERA_WORK_DIR. Update any environment settings that use the old name. github.com - Behavior changed
N-best search now deduplicates over word boundaries, which changes the returned results. github.com - Behavior changed
Dictionaries are now stored under LINDERA_DICTIONARIES_DIR with a per-name subfolder, and --dict no longer accepts bare dictionary names. github.com - Behavior changed
When two paths tie on cost, the one whose last word starts later is chosen, as in MeCab. Some segmentations change. github.com - Behavior changed
MODEL_FORMAT_VERSION is now 3.0.0, so an older model.dat fails to load and must be trained again. github.com - Behavior changed
Dictionary source archives are verified against a SHA-256 hash rather than an MD5 hash. github.com - Behavior changed
The builder no longer rewrites U+2015 and U+FF5E, so text spelled with U+2014 or U+301C no longer reaches entries it reached only through the rewrite. Dictionaries must be rebuilt. github.com - Behavior changed
Unknown-word processing runs at every reachable position, so some symbol, katakana and Latin runs split differently in normal mode. github.com - Behavior changed
With whitespace skipped, a dictionary entry that ends with whitespace now includes that whitespace in its token, and the Decompose length penalty counts it. Unique N-best no longer folds together results that differ only in their ends. github.com - Behavior changed
Unknown words are created at every position, which changes tokenization of unknown text. github.com - Behavior changed
Input lines with no tokens now produce output lines instead of nothing, which changes CLI output. github.com - Behavior changed
The tokenize JSON output now writes all schema fields as strings, so fields that were numbers before may now be strings. Parsers that expect numbers must be updated. github.com - Behavior changed
Among equal-cost entries with the same surface, the first CSV row is output instead of the last, which changes readings and details of such words. github.com - Behavior changed
Dictionary fields are now written as strings in JSON output, changing the output format. github.com - Behavior changed
The 1-best and N-best output can change after 、, 。 and forced cuts inside a line, and N-best costs of such lines follow one lattice over each segment. github.com - Behavior changed
A range line in char.def that lists no categories now fails to build the dictionary, as in MeCab. Fix such lines by adding categories. github.com - Behavior changed
Trained models and metadata.json now include the regularization type, changing their contents. github.com - Behavior changed
The CLI now strips only the line terminator, so surrounding whitespace is kept in the input. github.com - Behavior changed
N-best output now covers the whole input, so results differ from earlier versions. github.com - Behavior changed
Whitespace is skipped during segmentation, which changes the tokens produced for text with spaces. github.com - Behavior changed
The UniDic CWJ dictionary is now an official dictionary, and its context ids are remapped. github.com - Behavior changed
Unknown-word handling for SudachiDict now follows Sudachi's char.def rules. Users of SudachiDict should expect different tokenization and rebuild any dictionary built from the old sources. github.com - Behavior changed
When several char.def lines cover the same code point, the last line now wins instead of a union of categories, so some characters such as Ð are no longer treated as whitespace. Dictionaries built earlier keep the old categories until... github.com - Behavior changed
--dict
Passing a dictionary name such as ipadic to --dict or --system-dict now fails. Use embedded://<name> or the path printed by lindera download. github.com - Behavior changed
〇
With Jieba, 〇 is now a numeral entry (m) and no unknown word starts at it; dictionary directories must be built from the 0.1.2 archive to get it. github.com - Behavior changed
CharacterDefinition.lookup_categories
CharacterDefinition::lookup_categories now returns the default category first, then the others in category id order. github.com - Behavior changed
cost_threshold
The cost threshold is now relative to the best cost of the whole input rather than of each sentence, so the set of returned results can change. github.com - Behavior changed
lindera build
lindera build now fails on lex.csv, unk.def or matrix.def entries whose context ids fall outside matrix.def instead of building a dictionary that panics. github.com - Behavior changed
lindera tokenize
Only the line terminator is removed now, so offsets index the full input line and U+3000 at line ends becomes a token. Users relying on trimmed offsets must adjust. github.com - Behavior changed
lindera train
model.dat files written before 7.0.0 are rejected and must be retrained; lindera train rejects unk.def lines with fewer than five fields. github.com - Behavior changed
N-best
N-best on an empty input now returns one result without tokens instead of none, and wakati output writes an empty line for lines without tokens. github.com - Behavior changed
Segmenter.break_characters
By default the segmenter now treats ・ as a break character, so words split differently. Set an empty break_characters set to get the old MeCab segmentation. github.com - Behavior changed
Segmenter.segment_nbest_with_lattice
Results from rank 2 on are now the cheapest whole-input segmentations, so multi-sentence input gives different output. Code that relied on per-sentence rank joining must be reviewed. github.com - Behavior changed
unique N-best
With unique, results after the first may hold another path of the same segmentation, and tied entries now use the first CSV row. github.com - Default changed
Segmentation now breaks at the katakana middle dot by default, which changes tokens for text containing it. github.com - Default changed
Model training now applies L2 regularization with lambda 1.0 by default, so trained models differ from before. github.com - Default changed
lindera_crf.Trainer.new
Trainer::new and lindera train now use L2 regularization with lambda 1.0 by default. To train as before, pass --regularization l1 --lambda 0.01 or use_l2(false) with regularization_cost(0.01). github.com - Default changed
skip_whitespace
By default whitespace is no longer a SPACE node and the words on either side connect directly. Set skip_whitespace explicitly to keep the previous output. github.com - Configuration changed
LINDERA_BUILD_CONTEXT_ID_FREQ_FILE
LINDERA_BUILD_CONTEXT_ID_FREQ_FILE is no longer read at runtime, only in build scripts. github.com - Signature changed
ConnectionCostMatrix.costs
ConnectionCostMatrix costs() and row() now return ConnectionCost values rather than i16 slices, so callers must decode them. github.com - Signature changed
FeatureExtractor
Code that reads the FeatureExtractor fields directly must use the accessors, which return a read-only FeatureIdMap. github.com - Signature changed
FetchParams.archive_layout
Code that builds a FetchParams struct literal must now set archive_layout. github.com
And 15 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.