diff --git a/src/Humanizer/FluentDate/In.Months.tt b/src/Humanizer/FluentDate/In.Months.tt
index 149323bb9..ed84398d3 100644
--- a/src/Humanizer/FluentDate/In.Months.tt
+++ b/src/Humanizer/FluentDate/In.Months.tt
@@ -8,7 +8,7 @@ namespace Humanizer;
public partial class In
{
<#var now = DateTime.Now;
-for (int i = 0; i < 12; i++){
+for (var i = 0; i < 12; i++){
var monthName = new DateTime(now.Year, i + 1, 1).ToString("MMMM");
#>
///
diff --git a/src/Humanizer/FluentDate/In.SomeTimeFrom.tt b/src/Humanizer/FluentDate/In.SomeTimeFrom.tt
index 9b620c68f..8fdc13ddd 100644
--- a/src/Humanizer/FluentDate/In.SomeTimeFrom.tt
+++ b/src/Humanizer/FluentDate/In.SomeTimeFrom.tt
@@ -11,7 +11,7 @@ namespace Humanizer;
///
public partial class In
{
-<#for (int i = 1; i <= 10; i++){
+<#for (var i = 1; i <= 10; i++){
var plural = ( i > 1 ? "s" : "");
var second = "Second" + plural;
var minute = "Minute" + plural;
diff --git a/src/Humanizer/FluentDate/InDate.Months.tt b/src/Humanizer/FluentDate/InDate.Months.tt
index 752fadc0e..2568f78ac 100644
--- a/src/Humanizer/FluentDate/InDate.Months.tt
+++ b/src/Humanizer/FluentDate/InDate.Months.tt
@@ -9,7 +9,7 @@ namespace Humanizer;
public partial class InDate
{
<#var now = DateTime.Now;
-for (int i = 0; i < 12; i++){
+for (var i = 0; i < 12; i++){
var monthName = new DateTime(now.Year, i + 1, 1).ToString("MMMM");
#>
///
diff --git a/src/Humanizer/FluentDate/InDate.SomeTimeFrom.tt b/src/Humanizer/FluentDate/InDate.SomeTimeFrom.tt
index c5afc38bf..05d08850e 100644
--- a/src/Humanizer/FluentDate/InDate.SomeTimeFrom.tt
+++ b/src/Humanizer/FluentDate/InDate.SomeTimeFrom.tt
@@ -12,7 +12,7 @@ namespace Humanizer;
///
public partial class InDate
{
-<#for (int i = 1; i <= 10; i++){
+<#for (var i = 1; i <= 10; i++){
var plural = ( i > 1 ? "s" : "");
var day = "Day" + plural;
diff --git a/src/Humanizer/FluentDate/On.Days.tt b/src/Humanizer/FluentDate/On.Days.tt
index afa969c75..cf90b9e3e 100644
--- a/src/Humanizer/FluentDate/On.Days.tt
+++ b/src/Humanizer/FluentDate/On.Days.tt
@@ -13,7 +13,7 @@ public partial class On
{
<#
const int leapYear = 2012;
-for (int month = 1; month <= 12; month++)
+for (var month = 1; month <= 12; month++)
{
var firstDayOfMonth = new DateTime(leapYear, month, 1);
var monthName = firstDayOfMonth.ToString("MMMM");#>
@@ -28,7 +28,7 @@ for (int month = 1; month <= 12; month++)
public static DateTime The(int dayNumber)
=> new(DateTime.Now.Year, <#= month #>, dayNumber);
-<#for (int day = 1; day <= DateTime.DaysInMonth(leapYear, month); day++)
+<#for (var day = 1; day <= DateTime.DaysInMonth(leapYear, month); day++)
{
var ordinalDay = day.Ordinalize();#>
diff --git a/src/Humanizer/FluentDate/OnDate.Days.tt b/src/Humanizer/FluentDate/OnDate.Days.tt
index 7c2613ff0..4034e7079 100644
--- a/src/Humanizer/FluentDate/OnDate.Days.tt
+++ b/src/Humanizer/FluentDate/OnDate.Days.tt
@@ -14,7 +14,7 @@ public partial class OnDate
{
<#
const int leapYear = 2012;
-for (int month = 1; month <= 12; month++)
+for (var month = 1; month <= 12; month++)
{
var firstDayOfMonth = new DateTime(leapYear, month, 1);
var monthName = firstDayOfMonth.ToString("MMMM");#>
@@ -28,7 +28,7 @@ for (int month = 1; month <= 12; month++)
///
public static DateOnly The(int dayNumber)
=> new(DateTime.Now.Year, <#= month #>, dayNumber);
-<#for (int day = 1; day <= DateTime.DaysInMonth(leapYear, month); day++)
+<#for (var day = 1; day <= DateTime.DaysInMonth(leapYear, month); day++)
{
var ordinalDay = day.Ordinalize();#>
diff --git a/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs
index 48a361f15..ecf351c3f 100644
--- a/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs
+++ b/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs
@@ -60,7 +60,7 @@ private string Convert(long input, GrammaticalGender gender, bool isOrdinal, boo
input = -input;
}
- string lastOrdinalSubstitution = "";
+ var lastOrdinalSubstitution = "";
if ((input / 1000000000000) > 0)
{
diff --git a/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs b/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs
index dd2a5f220..7a218e120 100644
--- a/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs
+++ b/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs
@@ -33,7 +33,7 @@ internal class MalteseNumberToWordsConvertor : GenderedNumberToWordsConverter
public override string Convert(long input, GrammaticalGender gender, bool addAnd = true)
{
- bool negativeNumber = false;
+ var negativeNumber = false;
if (input < 0)
{
diff --git a/src/Humanizer/Localisation/NumberToWords/TamilNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/TamilNumberToWordsConverter.cs
index 7fffa6cda..e9f799739 100644
--- a/src/Humanizer/Localisation/NumberToWords/TamilNumberToWordsConverter.cs
+++ b/src/Humanizer/Localisation/NumberToWords/TamilNumberToWordsConverter.cs
@@ -241,8 +241,7 @@ private static string GetThousandsValue(ref long number)
}
private static string GetHundredsValue(ref long number)
{
- string local_word = "";
-
+ var local_word = "";
{
local_word = HundredsMap[(number / 100) - 1];
if (number / 100 == 9)