---
title: "lindera 7.0.0 Breaking Changes on crates.io | Since.dev"
description: "What each lindera release removed, renamed or changed: 65 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/lindera
last_updated: 2026-12-04
---

# 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

Latest version `7.3.0`, released December 2, 2026. [Source repository](https://github.com/lindera/lindera)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## lindera 7.0.0 breaking changes

lindera 7.0.0, released November 21, 2026: 65 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](https://github.com/lindera/lindera/commit/c3387cb21d6be54b61c0f936e774550488b37786)
- **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](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **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](https://github.com/lindera/lindera/commit/9e90ac347240552fa784c3353744f88a04e465eb)
- **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](https://github.com/lindera/lindera/commit/3f83558e1ee46bb9f46326cef11911dd449a532c)
- **Removed** `token_end`  

The token_end function is removed. Use the end value returned by the backtrace functions instead. [github.com](https://github.com/lindera/lindera/commit/5a0794a9f9c637202ad1c03644cd8955f2e21e33)
- **Removed** `TrainerConfig.surface_features`  

Use features() instead, and build the same surface-to-feature map from it if needed. [github.com](https://github.com/lindera/lindera/commit/033a88e2b191b3204459b3a2aac9ed44c79a76d5)
- **Renamed** `FetchParams.md5_hash`  

Dictionary build scripts that set md5_hash must pin a SHA-256 digest in sha256 instead. [github.com](https://github.com/lindera/lindera/commit/d12b0da38ef9c1586044623dbf6512bdc90193dd)
- **Renamed** `LINDERA_CONFIG_PATH`  

LINDERA_CONFIG_PATH is renamed to LINDERA_CONFIG_FILE. Update any environment settings that use the old name. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **Renamed** `LINDERA_WORKDIR`  

LINDERA_WORKDIR is renamed to LINDERA_WORK_DIR. Update any environment settings that use the old name. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **Behavior changed**  

N-best search now deduplicates over word boundaries, which changes the returned results. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **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](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **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](https://github.com/lindera/lindera/commit/c0848f2b83425e8bb35a189afad770db0f18972a)
- **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](https://github.com/lindera/lindera/commit/505427268851e68a421ebaf173235320512744b9)
- **Behavior changed**  

Dictionary source archives are verified against a SHA-256 hash rather than an MD5 hash. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **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](https://github.com/lindera/lindera/commit/3f83558e1ee46bb9f46326cef11911dd449a532c)
- **Behavior changed**  

Unknown-word processing runs at every reachable position, so some symbol, katakana and Latin runs split differently in normal mode. [github.com](https://github.com/lindera/lindera/commit/8a658dec6b0aefb72681866fc80905d990438623)
- **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](https://github.com/lindera/lindera/commit/5a0794a9f9c637202ad1c03644cd8955f2e21e33)
- **Behavior changed**  

Unknown words are created at every position, which changes tokenization of unknown text. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **Behavior changed**  

Input lines with no tokens now produce output lines instead of nothing, which changes CLI output. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **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](https://github.com/lindera/lindera/commit/d54ab916690715bcbbb100a6ac424f91c3e9e492)
- **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](https://github.com/lindera/lindera/commit/450f25012852ade0fa2aa62e7f0bd126258c1dec)
- **Behavior changed**  

Dictionary fields are now written as strings in JSON output, changing the output format. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **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](https://github.com/lindera/lindera/commit/a0cd9457f985896a27205268b1ae8e16259187b3)
- **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](https://github.com/lindera/lindera/commit/83c65f77ca1fee90007ab581d99b00d8f246fd2a)
- **Behavior changed**  

Trained models and metadata.json now include the regularization type, changing their contents. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **Behavior changed**  

The CLI now strips only the line terminator, so surrounding whitespace is kept in the input. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **Behavior changed**  

N-best output now covers the whole input, so results differ from earlier versions. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **Behavior changed**  

Whitespace is skipped during segmentation, which changes the tokens produced for text with spaces. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **Behavior changed**  

The UniDic CWJ dictionary is now an official dictionary, and its context ids are remapped. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **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](https://github.com/lindera/lindera/commit/3fd3d6953a76b59ecf0887771534b9bdd34c4a91)
- **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](https://github.com/lindera/lindera/commit/83c65f77ca1fee90007ab581d99b00d8f246fd2a)
- **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](https://github.com/lindera/lindera/commit/83aa049d45551eb2337b5a9c144fc1a8531cbde8)
- **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](https://github.com/lindera/lindera/commit/82158c4e4d2fbd3c58265f9652b336c70db15535)
- **Behavior changed** `CharacterDefinition.lookup_categories`  

CharacterDefinition::lookup_categories now returns the default category first, then the others in category id order. [github.com](https://github.com/lindera/lindera/commit/4f25c73ee5f3bfd8aadcb6f4c246ba48895eee08)
- **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](https://github.com/lindera/lindera/commit/72b2cacfba37ccce9711743526ac53534f9aebb5)
- **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](https://github.com/lindera/lindera/commit/9e90ac347240552fa784c3353744f88a04e465eb)
- **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](https://github.com/lindera/lindera/commit/7fc4879bfc37e0504ee68518563f1cf3205977f6)
- **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](https://github.com/lindera/lindera/commit/9e90ac347240552fa784c3353744f88a04e465eb)
- **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](https://github.com/lindera/lindera/commit/6640d8f478bcfd19c05b4c0bb5daed47b961c98a)
- **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](https://github.com/lindera/lindera/commit/c6856669d0b6ae009dfc9770ef8576706d092a34)
- **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](https://github.com/lindera/lindera/commit/72b2cacfba37ccce9711743526ac53534f9aebb5)
- **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](https://github.com/lindera/lindera/commit/6eea29cab6b8f3ae0c0a43b156f4a88ec3015d04)
- **Default changed**  

Segmentation now breaks at the katakana middle dot by default, which changes tokens for text containing it. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **Default changed**  

Model training now applies L2 regularization with lambda 1.0 by default, so trained models differ from before. [github.com](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **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](https://github.com/lindera/lindera/commit/c164e8a222549feeab954401859224aee317894e)
- **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](https://github.com/lindera/lindera/commit/547bdc4b6e361657fe2485fc4ddb7c9d7a0678e9)
- **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](https://github.com/lindera/lindera/releases/tag/v7.0.0)
- **Signature changed** `ConnectionCostMatrix.costs`  

ConnectionCostMatrix costs() and row() now return ConnectionCost values rather than i16 slices, so callers must decode them. [github.com](https://github.com/lindera/lindera/commit/c3387cb21d6be54b61c0f936e774550488b37786)
- **Signature changed** `FeatureExtractor`  

Code that reads the FeatureExtractor fields directly must use the accessors, which return a read-only FeatureIdMap. [github.com](https://github.com/lindera/lindera/commit/033a88e2b191b3204459b3a2aac9ed44c79a76d5)
- **Signature changed** `FetchParams.archive_layout`  

Code that builds a FetchParams struct literal must now set archive_layout. [github.com](https://github.com/lindera/lindera/commit/62b5c13de00ab89a249e1ef80cb097bfc8b59373)

And 15 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [lindera-ko-dic](https://since.dev/packages/crates/lindera-ko-dic.md)
- [lindera-ipadic](https://since.dev/packages/crates/lindera-ipadic.md)
- [lindera-dictionary](https://since.dev/packages/crates/lindera-dictionary.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
