Re: Sorting characters of the text - script doesn't work as expected
Re: Sorting characters of the text - script doesn't work as expected
- Subject: Re: Sorting characters of the text - script doesn't work as expected
- From: Jean-Christophe Helary <email@hidden>
- Date: Tue, 18 Apr 2017 08:56:37 +0900
On Apr 18, 2017, at 8:37, ILJA SHEBALIN < email@hidden> wrote:
Well, it worked.And that's a good thing. The problem is that unique character count is a part of the solution: imagine that you have a text in language A, full of references (not necessarily bibliographical ones) in language B and, as a result, containing lots of characters of the latter. The language is still A, but you may end up with the script determining the language is B because it has all unique characters of the alphabet of this language. I need absolute count of letters of either language. Here's where fun begins.
Not that I'd know how to do that, but it seems to me your problem can't really be solved by counting characters (absolute or relative count) unless you stick to languages that use strictly not overlapping character sets.
A more conclusive approach would be to 1) split the text in chunks (sentences for ex)
You could also create lists of words for each chunks and see how they compare with a list of common words in the languages you work with etc.
Jean-Christophe |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden