• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sorting characters of the text - script doesn't work as expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)
2) analyze each chunk with a specialized tool (like "Language Tool" at https://languagetool.org)

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

  • Follow-Ups:
    • Re: Sorting characters of the text - script doesn't work as expected
      • From: ILJA SHEBALIN <email@hidden>
References: 
 >Sorting characters of the text - script doesn't work as expected (From: ILJA SHEBALIN <email@hidden>)
 >Re: Sorting characters of the text - script doesn't work as expected (From: Christopher Stone <email@hidden>)
 >Re: Sorting characters of the text - script doesn't work as expected (From: ILJA SHEBALIN <email@hidden>)
 >Re: Sorting characters of the text - script doesn't work as expected (From: Yvan KOENIG <email@hidden>)
 >Re: Sorting characters of the text - script doesn't work as expected (From: ILJA SHEBALIN <email@hidden>)

  • Prev by Date: Re: Sorting characters of the text - script doesn't work as expected
  • Next by Date: Re: Using system log
  • Previous by thread: Re: Sorting characters of the text - script doesn't work as expected
  • Next by thread: Re: Sorting characters of the text - script doesn't work as expected
  • Index(es):
    • Date
    • Thread