manticoresoftware / manticoresoftware/manticoresearch

transliterator as a morphology processor?

Open
#58 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion enhancement
Dominant language
C++
Stars
12k
Forks
642
Avg merge
3d 12h
Merged PRs (30d)
47

Description

Recently been doing some work with charset_table to allow users to search for 'accented' letters more easily, folding them in similar way to uppercase, so 'accent insensitive'. ie U+C3->a sort of thing.

But a question was raised, what about when want to search for a specific variation, eg specifically search for "Bryn Côch" vs "Bryn Coch".

using index_exact_words springs to mind, but as will have already been processed by charset_table it doesn't work.

Wonder if any mileage, in being able to do the transliteration (to ASCII) via morphology. So that exact form operator would get the raw version.

iconv etc has well known transliteration tables, that could be used. https://gist.github.com/paulsmith/6059259

Only wrinkle morphology preprocessors tend to 'abort' when changing the token, si it would have to be hardwired, so that following processors (like stemming) could still be used.

morphology = translit_ascii, stem_en

(charset_table would have to be 'open' to let them though as word-chars, but wouldn't do the transliteration itself)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the morphology and charset_table processing described in the issue, including how index_exact_words preserves exact forms. Assess the proposed translit_ascii processor and its interaction with stem_en and word-character handling. Done means a decided design and implementation path for ASCII transliteration without preventing exact-form searches.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.