Cancelled

PHP script that will count Chinese words in a string

I need a PHP code to count Chinese and English words in a string. This string is actually a mix of Chinese and English words, and some other characters. This is the behavior that I want:

1. Count each Chinese character as a "word" (yes, I understand that this is not always the case, but I can allow to simplify it like this).

2. Count each English word as one word (i.e. don't count them as characters).

3. Count each number as one word (i.e. "1 2 3 456" is 4 words).

4. Ignore everything else (i.e. commas, dots, hyphens, spaces, tabs, enters, etc etc)

Below is an example string and expected result (please note I use "X" to substitute Chinese characters, since Freelancer seems to have a problem handling Chinese characters):

$string = "dog cat XXXXX 4 5 100 a b c cat, dog, home. XXXXX. XXX,dogXXXX. 67XX45XXXX23XXdfagXXX67!!!! All! ME? #%@^@%#&*())@(*[];'<>/\";

international_word_count($string); should return 47.

This project is based on hourly budget. Please specify how much time this is going to take you and what's your hourly rate.

Skills: PHP, Software Architecture

See more: chinese character count php, php count chinese words, dots freelancer, string problem, string i, string b, rate freelancer, php code software, freelancer spaces, freelancer english chinese, freelancer count, chinese characters, a b, software code freelancer, hourly home based, freelancer architecture, chinese english, cat character, count number tabs, english words chinese, character problem, php code example, chinese english freelancer, time string, software chinese

About the Employer:
( 14 reviews ) Stouffville, Canada

Project ID: #2581396

11 freelancers are bidding on average $9/hour for this job

webn

I can solve this. Actually, I have the solution.

$10 USD / hour
(87 Reviews)
6.4
wildlily980

I can help you.

$8 USD / hour
(41 Reviews)
6.0
inspire007

Hi, I have a similar script. Please check private message for details. Thanks

$10 USD / hour
(65 Reviews)
5.8
codelooms

Please check PMB

$15 USD / hour
(16 Reviews)
3.8
dotINSolution

Ready to work on this project

$5 USD / hour
(7 Reviews)
3.6
samarthsol

Please check PMB for the solution.

$8 USD / hour
(16 Reviews)
3.6
sac2811

Please check PMB. Consider it done

$10 USD / hour
(2 Reviews)
1.7
panpan75

i have read about your work requirement & i think i am confident enough to do this work

$5 USD / hour
(0 Reviews)
0.0
demonblack

It's a pretty straightforward project, shouldn't take more than 3 hours tops.

$8 USD / hour
(0 Reviews)
0.0
RicardoNasci

Hi. I easily do that script (Minimum 1 hour, Max 3).

$3 USD / hour
(0 Reviews)
0.0
The8128

2 hours, 40$ all together guarantee and I shall throw in a beautiful free realtime javascript based counter of the same type.

$20 USD / hour
(0 Reviews)
0.0