Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3782286
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:03:42+00:00 2026-05-19T11:03:42+00:00

Is there a way to stem Roman numerals in sphinx, so that Roman numerals

  • 0

Is there a way to stem Roman numerals in sphinx, so that Roman numerals are synonymous with Arab numerals?

For example, the query “Mafia 2” would be the same as “Mafia II”, and vice versa.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:03:42+00:00Added an answer on May 19, 2026 at 11:03 am

    You can make it with wordforms.
    Just write some script, translating Arab nums to Roman and make text file:

    walks > walk
    walker > walk
    1 > I
    2 > II
    3 > III
    4 > IV
    

    and so on… Then save in to /absolute/path/wordforms.txt and in your config in index section write:

    wordforms = /absolute/path/wordforms.txt
    

    That’s it. After reindexing if you search Mafia 2 sphinx find Mafia II for you. But it’s only one way translation (not so good for your question, but still useful) and better be used for things like this example from documentation:

    core 2 duo > c2d
    e6600 > c2d
    core 2duo > c2d
    

    Round 2

    Better way is to prepare search query before the search starts and stay away from indexer 🙂

    Your query:

    mafia 2|mafia II
    

    or

    gta 4|gta IV
    

    That’s all. You only need to write some arab to roman convert function. You can find it googling something like

    “arab to roman (your programming
    language)”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there way that I can read the file from remote server using fopen
Is there any way I can set a formatter on models that will convert
Is there way to define snippets in PyCharm, built-in or via plug-in? For example
Is there way for a class to 'remove' methods that it has inherited? E.g.
is there way to create a rule in the jquery validiation plugin that allows
Is there way to call an XSL template with optional parameters? For example: <xsl:call-template
Is there way to write some ConfigurationValidatorAttribute or in some other way that will
Is there way to set an event on an InfoWindow that will notify me
Is there way to set the dynamic-insert attribute globally with Hibernate (so it would
Is there way to get file from windows xp command prompt? I tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.