PHP скрипт для подсчета количества слов
Я хочу установить на своем сайте инструмент для подсчета количества слов сайта. Целевая аудитория - владельцы сайтов, которые собираются их переводить, и хотели бы узнать общее количество слов, повторы и новые слова. Зачем? Как правило, повторы не оплачиваются или оплачиваются по-другому тарифу, таким образом, они могут сэкономить общий бюджет проекта.
Хотела бы, чтобы все было приближенно к https://wordcount.weglot.com
Но добавить повторы и новые слова.
Немного терминологии. Для подсчета повторов и новых слов в области переводоведения используют также термин "сегменты". Сегменты - это заданные отрезки текста. В данном случае это будут:
1) предложение. Ориентир - точка, вопросительный знак, восклицательный знак.
2) не создавать сегмент после Mr. - аббревиатур.
3) не считать цифры как слова
4) тайтлы - отдельный сегмент, но без точки
5) заголовки в таблицах - отдельный сегмент, но без точки
6) меню
7) категории
8) теги
9) автор - кто написал блог, обычно это на базе вордпресса.
Например,
имеется такой текст:
Я хочу ходить в школу.
Я хочу ходить в Университет.
Я хочу ходить в школу.
Вот такой получается анализ этих слов http://prntscr.com/lunac2
Повторяется один сегмент, в котором содержатся 5 слов.
Новых слов в двух сегментах - 10 слов.
Всего слов - 15.
Таким образом, пользователю придется заплатить за 10 слов вместо 15.
Current freelance projects in the category PHP
Execution of work after SEO audit
334 USD
An experienced OpenCart developer is needed to perform SEO and technical improvements for the online store. Main tasks: Correction of the internal linking structure and menu. Adding links to the footer. Implementation of breadcrumbs with Schema.org microdata. Fixing the… PHP, Website Maintenance ∙ 1 day 11 hours back ∙ 51 proposals |
Fix issues with Facebook API in the OpenCart moduleIn OpenCart, there is a module for integrating Facebook and Instagram via API, OAuth, and Webhook. After opening the module page in the browser, the number of API requests to Facebook starts to increase, and the number of errors gr:get:InvalidID also rises. It is necessary to… PHP, Web Programming ∙ 1 day 12 hours back ∙ 34 proposals |
Integration needed: KeyCRM → Cash Register KashalotIt is necessary to set up integration between KeyCRM and the Cash Register Kahalot. When placing an order in KeyCRM, the data must be automatically transmitted to Kahalot: • order information • products, nomenclature • prices • quantity More details in private. Content Management Systems, PHP ∙ 4 days 8 hours back ∙ 29 proposals |
A WordPress site using the Kadence theme and Kadence Blocks.
223 USD
We need to create a website on WordPress using the Kadence theme and Kadence Blocks. There will be no online store (although it may be added in the future). We need a homepage and several internal pages. The graphics are already prepared, the layout structure is mostly defined,… Content Management Systems, PHP ∙ 5 days 17 hours back ∙ 38 proposals |
Development of 2 SEO-oriented websites for selling spare parts (ATVs and special equipment)Development of Two Specialized Websites for Selling Spare PartsGeneral Information It is necessary to develop two specialized websites: Spare parts for ATVs, UTVs, SSVs, and other similar equipment. Spare parts for special equipment. Existing company website:… PHP, Web Programming ∙ 6 days 14 hours back ∙ 77 proposals |