Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check for Arabic Line

 
Murtaza Lokhandwala
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me how to check if line is in arabic language during file read/write operation?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Language detection is notoriously difficult, but searching for "language detection java" finds several promising leads. Not sure how well those work if the text in question includes words in multiple languages, though.
 
Murtaza Lokhandwala
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is the best Java library for automatic language detection?

Hypothetical syntax:

String languageCode = LanguageIdentificationAPI.identifyLanguage("Hello world.");
// languageCode would now contain "en" for English.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're taking a question originally posted on StackOverflow and repost it here? What's the point of that? Have you worked through all the answers given over there, and found them all to be lacking?
 
Murtaza Lokhandwala
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i didnt find my stuff there..i just need help only!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic