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 1026073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:01:38+00:00 2026-05-16T12:01:38+00:00

Given: A text (optional with HTML tags) a database table with abbreviations and acronyms

  • 0

Given:

  • A text (optional with HTML tags)
  • a database table with abbreviations and acronyms (like “etc.”, “s.o.”, …)

Goals:

  • Build a parser that finds all occurrences in the given text
  • Build a small gui to let the user choose if the found occurrence matches (this will be swing by demand)
  • User has the option to ignore a match (must also be marked as “to be ignored”)
  • Replace any accepted occurrence with a special XML construct

My main problem is the parser, I’ve mentioned the GUI just for giving a complete overview.

The task is to build a parser that analyzes the text for e.x. an acronym and mark it for later postprocessing. Any “mark” must me in form of XML tags, as the surrounding environment does not accept anything else (We are in a DOM Editor of a CMS that ends with “Spirit” 😉 ).

Does anybody has a hint for a library or did anybody build something like this? How did you or would you handle things like:

  • Two or more words are one entity
  • fullstop – part of the sentence or part of the token you are looking for
  • iterative replacement – user accepts the first occurrence – instant replace or buffering?

Any idea, library hint, wikipedia article, whatever – is helpful. I didn’t find any related question that answered all of the aspects mentioned above.

  • 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-16T12:01:39+00:00Added an answer on May 16, 2026 at 12:01 pm

    I’ve read much good things about apache lucene and I’d look at this first if I had a similar project. It can index the source document and help to find all occurences of your acronyms (that’s what you want as a result from the ‘parsing’ step, if I got it right).

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

Sidebar

Related Questions

How can I find given text within a string? After that, I'd like to
I have a list of whitelisted words: kitchen chair table ; Given a text,
Given a large text block from a WYSIWYG like: Lorem ipsum dolor sit amet,
given a plain text file, how can I do, using bash, awk, sed, etc,
Is there any java library that with given text (title) gets collection of important
I would like to check whether a given text begins with some currency symbols,
I have a Flex movie that contains a text input box and an (optional)
What I would really like to do is create an optional text to pass
Given text like: XXXXXXX. XXXXXXX. XXXXXXX. XXXXXXX. XXXXXXX. XXXXXXX. XXXXXXX. XXXXXXX. XXXXXXX.XXXXXXX. XXXXXXX. XXXXXXX.
We need to get tree like structure from a given text document using Java.

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.